<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Flow: flow::net_flow::asio::Peer_socket Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Flow<span id="projectnumber">&#160;2.0.0</span>
   </div>
   <div id="projectbrief">Flow project: Full implementation reference.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceflow.html">flow</a></li><li class="navelem"><a class="el" href="namespaceflow_1_1net__flow.html">net_flow</a></li><li class="navelem"><a class="el" href="namespaceflow_1_1net__flow_1_1asio.html">asio</a></li><li class="navelem"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html">Peer_socket</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-types">Private Types</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="#related">Related Functions</a> &#124;
<a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">flow::net_flow::asio::Peer_socket Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>A <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html" title="A peer (non-server) socket operating over the Flow network protocol, with optional stream-of-bytes an...">net_flow::Peer_socket</a> that adds integration with boost.asio.  
 <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for flow::net_flow::asio::Peer_socket:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket__inherit__graph.svg" width="554" height="264"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for flow::net_flow::asio::Peer_socket:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket__coll__graph.svg" width="2519" height="4195"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a3ee868ebd8acd1788a5bed8cf66a349e"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a3ee868ebd8acd1788a5bed8cf66a349e">Ptr</a> = boost::shared_ptr&lt; <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html">Peer_socket</a> &gt;</td></tr>
<tr class="memdesc:a3ee868ebd8acd1788a5bed8cf66a349e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Short-hand for <code>shared_ptr</code> to <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html" title="A net_flow::Peer_socket that adds integration with boost.asio.">Peer_socket</a>.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a3ee868ebd8acd1788a5bed8cf66a349e">More...</a><br /></td></tr>
<tr class="separator:a3ee868ebd8acd1788a5bed8cf66a349e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classflow_1_1net__flow_1_1Peer__socket"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classflow_1_1net__flow_1_1Peer__socket')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html">flow::net_flow::Peer_socket</a></td></tr>
<tr class="memitem:a6a9bb727c8982f24bcf978c10c2c7345 inherit pub_types_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a6a9bb727c8982f24bcf978c10c2c7345">State</a> { <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a6a9bb727c8982f24bcf978c10c2c7345a02dcbe46a8dfde95b9776744dacae189">S_OPEN</a>
, <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a6a9bb727c8982f24bcf978c10c2c7345a6abcbd1be8478aa03e76aec9c540e14f">S_CLOSED</a>
 }</td></tr>
<tr class="memdesc:a6a9bb727c8982f24bcf978c10c2c7345"><td class="mdescLeft">&#160;</td><td class="mdescRight">State of a <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html" title="A peer (non-server) socket operating over the Flow network protocol, with optional stream-of-bytes an...">Peer_socket</a>.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a6a9bb727c8982f24bcf978c10c2c7345">More...</a><br /></td></tr>
<tr class="separator:a6a9bb727c8982f24bcf978c10c2c7345 inherit pub_types_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f48d01d1269c9d4260d972baa40e548 inherit pub_types_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a6f48d01d1269c9d4260d972baa40e548">Open_sub_state</a> { <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a6f48d01d1269c9d4260d972baa40e548aae585d03fce4ac2011967830bf0ffbfb">S_CONNECTING</a>
, <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a6f48d01d1269c9d4260d972baa40e548a357459237df4b1f8f34e81ce43e2d8fe">S_CONNECTED</a>
, <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a6f48d01d1269c9d4260d972baa40e548ae2b40112ddbd5a78114d600ec26726b9">S_DISCONNECTING</a>
 }</td></tr>
<tr class="memdesc:a6f48d01d1269c9d4260d972baa40e548"><td class="mdescLeft">&#160;</td><td class="mdescRight">The sub-state of a <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html" title="A peer (non-server) socket operating over the Flow network protocol, with optional stream-of-bytes an...">Peer_socket</a> when state is <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a6a9bb727c8982f24bcf978c10c2c7345a02dcbe46a8dfde95b9776744dacae189" title="Future reads or writes may be possible. A socket in this state may be Writable or Readable.">State::S_OPEN</a>.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a6f48d01d1269c9d4260d972baa40e548">More...</a><br /></td></tr>
<tr class="separator:a6f48d01d1269c9d4260d972baa40e548 inherit pub_types_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classflow_1_1util_1_1Shared__ptr__alias__holder"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classflow_1_1util_1_1Shared__ptr__alias__holder')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html">flow::util::Shared_ptr_alias_holder&lt; boost::shared_ptr&lt; Peer_socket &gt; &gt;</a></td></tr>
<tr class="memitem:aa4f1af88393042e60159a3a67f0accbc inherit pub_types_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#aa4f1af88393042e60159a3a67f0accbc">Ptr</a> = boost::shared_ptr&lt; Peer_socket &gt;</td></tr>
<tr class="memdesc:aa4f1af88393042e60159a3a67f0accbc inherit pub_types_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="mdescLeft">&#160;</td><td class="mdescRight">Short-hand for ref-counted pointer to mutable values of type <code>Target_type::element_type</code> (a-la <code>T*</code>).  <a href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#aa4f1af88393042e60159a3a67f0accbc">More...</a><br /></td></tr>
<tr class="separator:aa4f1af88393042e60159a3a67f0accbc inherit pub_types_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef7998db71c60eeb5d1e3d1a97c14886 inherit pub_types_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#aef7998db71c60eeb5d1e3d1a97c14886">Const_ptr</a> = Const_target_ptr</td></tr>
<tr class="memdesc:aef7998db71c60eeb5d1e3d1a97c14886 inherit pub_types_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="mdescLeft">&#160;</td><td class="mdescRight">Short-hand for ref-counted pointer to immutable values of type <code>Target_type::element_type</code> (a-la <code>T const *</code>).  <a href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#aef7998db71c60eeb5d1e3d1a97c14886">More...</a><br /></td></tr>
<tr class="separator:aef7998db71c60eeb5d1e3d1a97c14886 inherit pub_types_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0101eeb10a910cb7dfb5a4b8016b8138"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a0101eeb10a910cb7dfb5a4b8016b8138">~Peer_socket</a> () override</td></tr>
<tr class="memdesc:a0101eeb10a910cb7dfb5a4b8016b8138"><td class="mdescLeft">&#160;</td><td class="mdescRight">Boring <code>virtual</code> destructor as in superclass. See notes there.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a0101eeb10a910cb7dfb5a4b8016b8138">More...</a><br /></td></tr>
<tr class="separator:a0101eeb10a910cb7dfb5a4b8016b8138"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c63aaece6a9b056688a35405f064c70"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4">util::Task_engine</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70">async_task_engine</a> ()</td></tr>
<tr class="memdesc:a1c63aaece6a9b056688a35405f064c70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer (possibly null) for the <a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4" title="Short-hand for boost.asio event service, the central class of boost.asio.">flow::util::Task_engine</a> used by any coming <code>async_*()</code> I/O calls.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70">More...</a><br /></td></tr>
<tr class="separator:a1c63aaece6a9b056688a35405f064c70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fb07f6c5f4def217f22285fab03add1"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4">util::Task_engine</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a4fb07f6c5f4def217f22285fab03add1">async_task_engine_cref</a> () const</td></tr>
<tr class="memdesc:a4fb07f6c5f4def217f22285fab03add1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read-only version of <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a4fb07f6c5f4def217f22285fab03add1">More...</a><br /></td></tr>
<tr class="separator:a4fb07f6c5f4def217f22285fab03add1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03a8a4b4ab5338d80b5d78a03279510a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a03a8a4b4ab5338d80b5d78a03279510a">set_async_task_engine</a> (<a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4">util::Task_engine</a> *target_async_task_engine)</td></tr>
<tr class="memdesc:a03a8a4b4ab5338d80b5d78a03279510a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Overwrites the value to be returned by next <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a03a8a4b4ab5338d80b5d78a03279510a">More...</a><br /></td></tr>
<tr class="separator:a03a8a4b4ab5338d80b5d78a03279510a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98186f8257f1f7b49dbbbc13c0dda7fe"><td class="memTemplParams" colspan="2">template&lt;typename Rep , typename Period , typename Mutable_buffer_sequence , typename Handler &gt; </td></tr>
<tr class="memitem:a98186f8257f1f7b49dbbbc13c0dda7fe"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe">async_receive</a> (const Mutable_buffer_sequence &amp;target, const boost::chrono::duration&lt; Rep, Period &gt; &amp;max_wait, Handler &amp;&amp;on_result)</td></tr>
<tr class="memdesc:a98186f8257f1f7b49dbbbc13c0dda7fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">boost.asio-style asynchronous version that essentially performs non-<code>nullptr_t</code> <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b" title="Blocking (synchronous) version of receive().">net_flow::Peer_socket::sync_receive()</a> in the background and invokes the given handler via the saved <code>Task_engine *(<a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>)</code>, as if by <code>post(Task_engine&amp;)</code>.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe">More...</a><br /></td></tr>
<tr class="separator:a98186f8257f1f7b49dbbbc13c0dda7fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa312348ba3e68d41d1341d3d6d487abc"><td class="memTemplParams" colspan="2">template&lt;typename Rep , typename Period , typename Handler &gt; </td></tr>
<tr class="memitem:aa312348ba3e68d41d1341d3d6d487abc"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#aa312348ba3e68d41d1341d3d6d487abc">async_receive</a> (std::nullptr_t, const boost::chrono::duration&lt; Rep, Period &gt; &amp;max_wait, Handler &amp;&amp;on_result)</td></tr>
<tr class="memdesc:aa312348ba3e68d41d1341d3d6d487abc"><td class="mdescLeft">&#160;</td><td class="mdescRight">boost.asio-style asynchronous version that essentially performs a <code>nullptr_t</code> <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b" title="Blocking (synchronous) version of receive().">net_flow::Peer_socket::sync_receive()</a> in the background and invokes the given handler via the saved <code>Task_engine *(<a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>)</code>, as if by <code>post(Task_engine&amp;)</code>.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#aa312348ba3e68d41d1341d3d6d487abc">More...</a><br /></td></tr>
<tr class="separator:aa312348ba3e68d41d1341d3d6d487abc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99e10ad940f00853070a05d93d70173d"><td class="memTemplParams" colspan="2">template&lt;typename Mutable_buffer_sequence , typename Handler &gt; </td></tr>
<tr class="memitem:a99e10ad940f00853070a05d93d70173d"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a99e10ad940f00853070a05d93d70173d">async_receive</a> (const Mutable_buffer_sequence &amp;target, Handler &amp;&amp;on_result)</td></tr>
<tr class="memdesc:a99e10ad940f00853070a05d93d70173d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equivalent to <code>async_receive(target, duration::max(), on_result)</code>; i.e., <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_receive()</a></code> with no timeout.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a99e10ad940f00853070a05d93d70173d">More...</a><br /></td></tr>
<tr class="separator:a99e10ad940f00853070a05d93d70173d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1906293d0b039f95f683d02c30ec353c"><td class="memTemplParams" colspan="2">template&lt;typename Handler &gt; </td></tr>
<tr class="memitem:a1906293d0b039f95f683d02c30ec353c"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1906293d0b039f95f683d02c30ec353c">async_receive</a> (std::nullptr_t, Handler &amp;&amp;on_result)</td></tr>
<tr class="memdesc:a1906293d0b039f95f683d02c30ec353c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equivalent to <code>async_receive(nullptr, duration::max(), on_result)</code>; i.e., <code>async_receive(nullptr)</code> with no timeout.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1906293d0b039f95f683d02c30ec353c">More...</a><br /></td></tr>
<tr class="separator:a1906293d0b039f95f683d02c30ec353c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33adc635f29071b10ea59802405d9b6c"><td class="memTemplParams" colspan="2">template&lt;typename Rep , typename Period , typename Const_buffer_sequence , typename Handler &gt; </td></tr>
<tr class="memitem:a33adc635f29071b10ea59802405d9b6c"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a33adc635f29071b10ea59802405d9b6c">async_send</a> (const Const_buffer_sequence &amp;source, const boost::chrono::duration&lt; Rep, Period &gt; &amp;max_wait, Handler &amp;&amp;on_result)</td></tr>
<tr class="memdesc:a33adc635f29071b10ea59802405d9b6c"><td class="mdescLeft">&#160;</td><td class="mdescRight">boost.asio-style asynchronous version that essentially performs non-<code>nullptr_t</code> <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2" title="Blocking (synchronous) version of send().">net_flow::Peer_socket::sync_send()</a> in the background and invokes the given handler via the saved <code>Task_engine *(<a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>)</code>, as if by <code>post(Task_engine&amp;)</code>.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a33adc635f29071b10ea59802405d9b6c">More...</a><br /></td></tr>
<tr class="separator:a33adc635f29071b10ea59802405d9b6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03edb7266f89a8fdc5668e7ed3e039a1"><td class="memTemplParams" colspan="2">template&lt;typename Rep , typename Period , typename Handler &gt; </td></tr>
<tr class="memitem:a03edb7266f89a8fdc5668e7ed3e039a1"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a03edb7266f89a8fdc5668e7ed3e039a1">async_send</a> (std::nullptr_t, const boost::chrono::duration&lt; Rep, Period &gt; &amp;max_wait, Handler &amp;&amp;on_result)</td></tr>
<tr class="memdesc:a03edb7266f89a8fdc5668e7ed3e039a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">boost.asio-style asynchronous version that essentially performs a <code>nullptr_t</code> <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2" title="Blocking (synchronous) version of send().">net_flow::Peer_socket::sync_send()</a> in the background and invokes the given handler via the saved <code>Task_engine *(<a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>)</code>, as if by <code>post(Task_engine&amp;)</code>.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a03edb7266f89a8fdc5668e7ed3e039a1">More...</a><br /></td></tr>
<tr class="separator:a03edb7266f89a8fdc5668e7ed3e039a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3caaf38ad1ae9c34c7c5b631a562d0c3"><td class="memTemplParams" colspan="2">template&lt;typename Const_buffer_sequence , typename Handler &gt; </td></tr>
<tr class="memitem:a3caaf38ad1ae9c34c7c5b631a562d0c3"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a3caaf38ad1ae9c34c7c5b631a562d0c3">async_send</a> (const Const_buffer_sequence &amp;source, Handler &amp;&amp;on_result)</td></tr>
<tr class="memdesc:a3caaf38ad1ae9c34c7c5b631a562d0c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equivalent to <code>async_send(target, duration::max(), on_result)</code>; i.e., <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a33adc635f29071b10ea59802405d9b6c" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_send()</a></code> with no timeout.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a3caaf38ad1ae9c34c7c5b631a562d0c3">More...</a><br /></td></tr>
<tr class="separator:a3caaf38ad1ae9c34c7c5b631a562d0c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8c178464454962e49b13731caa83791"><td class="memTemplParams" colspan="2">template&lt;typename Handler &gt; </td></tr>
<tr class="memitem:ad8c178464454962e49b13731caa83791"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#ad8c178464454962e49b13731caa83791">async_send</a> (std::nullptr_t, Handler &amp;&amp;on_result)</td></tr>
<tr class="memdesc:ad8c178464454962e49b13731caa83791"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equivalent to <code>async_send(nullptr, duration::max(), on_result)</code>; i.e., <code>async_send(nullptr)</code> with no timeout.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#ad8c178464454962e49b13731caa83791">More...</a><br /></td></tr>
<tr class="separator:ad8c178464454962e49b13731caa83791"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classflow_1_1net__flow_1_1Peer__socket')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html">flow::net_flow::Peer_socket</a></td></tr>
<tr class="memitem:a729af2cb3465b67b811d8e9438b5af5d inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a729af2cb3465b67b811d8e9438b5af5d">~Peer_socket</a> () override</td></tr>
<tr class="memdesc:a729af2cb3465b67b811d8e9438b5af5d inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Boring <code>virtual</code> destructor. Note that deletion is to be handled exclusively via <code>shared_ptr</code>, never explicitly.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a729af2cb3465b67b811d8e9438b5af5d">More...</a><br /></td></tr>
<tr class="separator:a729af2cb3465b67b811d8e9438b5af5d inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af982953b5136c1df488066eacc293a78 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a6a9bb727c8982f24bcf978c10c2c7345">State</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#af982953b5136c1df488066eacc293a78">state</a> (<a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a6f48d01d1269c9d4260d972baa40e548">Open_sub_state</a> *open_sub_state=0) const</td></tr>
<tr class="memdesc:af982953b5136c1df488066eacc293a78 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Current State of the socket.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#af982953b5136c1df488066eacc293a78">More...</a><br /></td></tr>
<tr class="separator:af982953b5136c1df488066eacc293a78 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9e7e1be830c901bc7348742e79ba2e7 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classflow_1_1net__flow_1_1Node.html">Node</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#aa9e7e1be830c901bc7348742e79ba2e7">node</a> () const</td></tr>
<tr class="memdesc:aa9e7e1be830c901bc7348742e79ba2e7 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classflow_1_1net__flow_1_1Node.html" title="An object of this class is a single Flow-protocol networking node, in the sense that: (1) it has a di...">Node</a> that produced this <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html" title="A peer (non-server) socket operating over the Flow network protocol, with optional stream-of-bytes an...">Peer_socket</a>.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#aa9e7e1be830c901bc7348742e79ba2e7">More...</a><br /></td></tr>
<tr class="separator:aa9e7e1be830c901bc7348742e79ba2e7 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e423a9fd18a45cc7cc5fc34af29161e inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structflow_1_1net__flow_1_1Remote__endpoint.html">Remote_endpoint</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a5e423a9fd18a45cc7cc5fc34af29161e">remote_endpoint</a> () const</td></tr>
<tr class="memdesc:a5e423a9fd18a45cc7cc5fc34af29161e inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Intended other side of the connection (regardless of success, failure, or current State).  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a5e423a9fd18a45cc7cc5fc34af29161e">More...</a><br /></td></tr>
<tr class="separator:a5e423a9fd18a45cc7cc5fc34af29161e inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7af387476aa0bdc6b3906c153d824acb inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceflow_1_1net__flow.html#a079d8cd87a68d1c5f04c6bce71f0061d">flow_port_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a7af387476aa0bdc6b3906c153d824acb">local_port</a> () const</td></tr>
<tr class="memdesc:a7af387476aa0bdc6b3906c153d824acb inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">The local Flow-protocol port chosen by the <a class="el" href="classflow_1_1net__flow_1_1Node.html" title="An object of this class is a single Flow-protocol networking node, in the sense that: (1) it has a di...">Node</a> (if active or passive open) or user (if passive open) for this side of the connection.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a7af387476aa0bdc6b3906c153d824acb">More...</a><br /></td></tr>
<tr class="separator:a7af387476aa0bdc6b3906c153d824acb inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c99637726b3c2b2ff1dbf14c6c92752 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a0c99637726b3c2b2ff1dbf14c6c92752">get_connect_metadata</a> (const boost::asio::mutable_buffer &amp;buffer, <a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a> *err_code=0) const</td></tr>
<tr class="memdesc:a0c99637726b3c2b2ff1dbf14c6c92752 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtains the serialized connect metadata, as supplied by the user during the connection handshake.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a0c99637726b3c2b2ff1dbf14c6c92752">More...</a><br /></td></tr>
<tr class="separator:a0c99637726b3c2b2ff1dbf14c6c92752 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af90b656d7e0b7e746b8beb4e24717cec inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplParams" colspan="2">template&lt;typename Const_buffer_sequence &gt; </td></tr>
<tr class="memitem:af90b656d7e0b7e746b8beb4e24717cec inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplItemLeft" align="right" valign="top">size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#af90b656d7e0b7e746b8beb4e24717cec">send</a> (const Const_buffer_sequence &amp;data, <a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a> *err_code=0)</td></tr>
<tr class="memdesc:af90b656d7e0b7e746b8beb4e24717cec inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends (adds to the Send buffer) the given bytes of data up to a maximum internal buffer size; and asynchronously sends them to the other side.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#af90b656d7e0b7e746b8beb4e24717cec">More...</a><br /></td></tr>
<tr class="separator:af90b656d7e0b7e746b8beb4e24717cec inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70629642551f18e474b87c128d2d77e2 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplParams" colspan="2">template&lt;typename Rep , typename Period , typename Const_buffer_sequence &gt; </td></tr>
<tr class="memitem:a70629642551f18e474b87c128d2d77e2 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplItemLeft" align="right" valign="top">size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2">sync_send</a> (const Const_buffer_sequence &amp;data, const boost::chrono::duration&lt; Rep, Period &gt; &amp;max_wait, <a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a> *err_code=0)</td></tr>
<tr class="memdesc:a70629642551f18e474b87c128d2d77e2 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Blocking (synchronous) version of <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#af90b656d7e0b7e746b8beb4e24717cec" title="Sends (adds to the Send buffer) the given bytes of data up to a maximum internal buffer size; and asy...">send()</a>.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2">More...</a><br /></td></tr>
<tr class="separator:a70629642551f18e474b87c128d2d77e2 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4c4e5917d693efdf4701962bdc35a0f inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplParams" colspan="2">template&lt;typename Rep , typename Period &gt; </td></tr>
<tr class="memitem:aa4c4e5917d693efdf4701962bdc35a0f inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#aa4c4e5917d693efdf4701962bdc35a0f">sync_send</a> (std::nullptr_t, const boost::chrono::duration&lt; Rep, Period &gt; &amp;max_wait, <a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a> *err_code=0)</td></tr>
<tr class="memdesc:aa4c4e5917d693efdf4701962bdc35a0f inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight"><code><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2" title="Blocking (synchronous) version of send().">sync_send()</a></code> operating in <code>nullptr_t</code> mode, wherein &ndash; if Writable state is reached &ndash; the actual data are not moved out of any buffer, leaving that to the caller to do if desired.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#aa4c4e5917d693efdf4701962bdc35a0f">More...</a><br /></td></tr>
<tr class="separator:aa4c4e5917d693efdf4701962bdc35a0f inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b9fa02a7c41b52fde9e05e862a9d20f inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplParams" colspan="2">template&lt;typename Const_buffer_sequence &gt; </td></tr>
<tr class="memitem:a6b9fa02a7c41b52fde9e05e862a9d20f inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplItemLeft" align="right" valign="top">size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a6b9fa02a7c41b52fde9e05e862a9d20f">sync_send</a> (const Const_buffer_sequence &amp;data, <a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a> *err_code=0)</td></tr>
<tr class="memdesc:a6b9fa02a7c41b52fde9e05e862a9d20f inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equivalent to <code>sync_send(data, duration::max(), err_code)</code>; i.e., <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2" title="Blocking (synchronous) version of send().">sync_send()</a> with no timeout.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a6b9fa02a7c41b52fde9e05e862a9d20f">More...</a><br /></td></tr>
<tr class="separator:a6b9fa02a7c41b52fde9e05e862a9d20f inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94f1e498fdd2349075ee5bcd7906d308 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a94f1e498fdd2349075ee5bcd7906d308">sync_send</a> (std::nullptr_t, <a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a> *err_code=0)</td></tr>
<tr class="memdesc:a94f1e498fdd2349075ee5bcd7906d308 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equivalent to <code>sync_send(nullptr, duration::max(), err_code)</code>; i.e., <code>sync_send(nullptr_t)</code> with no timeout.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a94f1e498fdd2349075ee5bcd7906d308">More...</a><br /></td></tr>
<tr class="separator:a94f1e498fdd2349075ee5bcd7906d308 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb88e9253cc3f52269cb762c8e57e6d0 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplParams" colspan="2">template&lt;typename Mutable_buffer_sequence &gt; </td></tr>
<tr class="memitem:aeb88e9253cc3f52269cb762c8e57e6d0 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplItemLeft" align="right" valign="top">size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#aeb88e9253cc3f52269cb762c8e57e6d0">receive</a> (const Mutable_buffer_sequence &amp;target, <a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a> *err_code=0)</td></tr>
<tr class="memdesc:aeb88e9253cc3f52269cb762c8e57e6d0 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Receives (consumes from the Receive buffer) bytes of data, up to a given maximum cumulative number of bytes as inferred from size of provided target buffer sequence.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#aeb88e9253cc3f52269cb762c8e57e6d0">More...</a><br /></td></tr>
<tr class="separator:aeb88e9253cc3f52269cb762c8e57e6d0 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a256b77e546fff9394ef8d509e2ae771b inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplParams" colspan="2">template&lt;typename Rep , typename Period , typename Mutable_buffer_sequence &gt; </td></tr>
<tr class="memitem:a256b77e546fff9394ef8d509e2ae771b inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplItemLeft" align="right" valign="top">size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b">sync_receive</a> (const Mutable_buffer_sequence &amp;target, const boost::chrono::duration&lt; Rep, Period &gt; &amp;max_wait, <a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a> *err_code=0)</td></tr>
<tr class="memdesc:a256b77e546fff9394ef8d509e2ae771b inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Blocking (synchronous) version of <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#aeb88e9253cc3f52269cb762c8e57e6d0" title="Receives (consumes from the Receive buffer) bytes of data, up to a given maximum cumulative number of...">receive()</a>.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b">More...</a><br /></td></tr>
<tr class="separator:a256b77e546fff9394ef8d509e2ae771b inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34cc9ad4501bb8cefe2c4e946be88232 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplParams" colspan="2">template&lt;typename Rep , typename Period &gt; </td></tr>
<tr class="memitem:a34cc9ad4501bb8cefe2c4e946be88232 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a34cc9ad4501bb8cefe2c4e946be88232">sync_receive</a> (std::nullptr_t, const boost::chrono::duration&lt; Rep, Period &gt; &amp;max_wait, <a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a> *err_code=0)</td></tr>
<tr class="memdesc:a34cc9ad4501bb8cefe2c4e946be88232 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight"><code><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b" title="Blocking (synchronous) version of receive().">sync_receive()</a></code> operating in <code>nullptr_t</code> mode, wherein &ndash; if Readable state is reached &ndash; the actual data are not moved into any buffer, leaving that to the caller to do if desired.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a34cc9ad4501bb8cefe2c4e946be88232">More...</a><br /></td></tr>
<tr class="separator:a34cc9ad4501bb8cefe2c4e946be88232 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5143886b33b4f16e4fbfbe3a4e91e44 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplParams" colspan="2">template&lt;typename Mutable_buffer_sequence &gt; </td></tr>
<tr class="memitem:af5143886b33b4f16e4fbfbe3a4e91e44 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memTemplItemLeft" align="right" valign="top">size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#af5143886b33b4f16e4fbfbe3a4e91e44">sync_receive</a> (const Mutable_buffer_sequence &amp;target, <a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a> *err_code=0)</td></tr>
<tr class="memdesc:af5143886b33b4f16e4fbfbe3a4e91e44 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equivalent to <code>sync_receive(target, duration::max(), err_code)</code>; i.e., <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b" title="Blocking (synchronous) version of receive().">sync_receive()</a> with no timeout.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#af5143886b33b4f16e4fbfbe3a4e91e44">More...</a><br /></td></tr>
<tr class="separator:af5143886b33b4f16e4fbfbe3a4e91e44 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a207b46e4bd4d251f54951ce1e5d7439f inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a207b46e4bd4d251f54951ce1e5d7439f">sync_receive</a> (std::nullptr_t, <a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a> *err_code=0)</td></tr>
<tr class="memdesc:a207b46e4bd4d251f54951ce1e5d7439f inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equivalent to <code>sync_receive(nullptr, duration::max(), err_code)</code>; i.e., <code>sync_receive(nullptr_t)</code> with no timeout.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a207b46e4bd4d251f54951ce1e5d7439f">More...</a><br /></td></tr>
<tr class="separator:a207b46e4bd4d251f54951ce1e5d7439f inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ab710704237f912eb219f9b8d574afc inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a9ab710704237f912eb219f9b8d574afc">close_abruptly</a> (<a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a> *err_code=0)</td></tr>
<tr class="memdesc:a9ab710704237f912eb219f9b8d574afc inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Acts as if fatal error <a class="el" href="namespaceflow_1_1net__flow_1_1error.html#a18e13de77b119ea0f2be411490859482a35606f4143e15dbe6bc03a543599dec8" title="User code on this side abruptly closed connection; other side may be informed of this.">error::Code::S_USER_CLOSED_ABRUPTLY</a> has been discovered on the connection.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a9ab710704237f912eb219f9b8d574afc">More...</a><br /></td></tr>
<tr class="separator:a9ab710704237f912eb219f9b8d574afc inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d31cf18a3c075873de1c46c0176e41f inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a7d31cf18a3c075873de1c46c0176e41f">set_options</a> (const <a class="el" href="structflow_1_1net__flow_1_1Peer__socket__options.html">Peer_socket_options</a> &amp;opts, <a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a> *err_code=0)</td></tr>
<tr class="memdesc:a7d31cf18a3c075873de1c46c0176e41f inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Dynamically replaces the current options set (<a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#ad94e37c8cca01f801f13e9e0e0bc857d" title="Copies this socket&#39;s option set and returns that copy.">options()</a>) with the given options set.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a7d31cf18a3c075873de1c46c0176e41f">More...</a><br /></td></tr>
<tr class="separator:a7d31cf18a3c075873de1c46c0176e41f inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad94e37c8cca01f801f13e9e0e0bc857d inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structflow_1_1net__flow_1_1Peer__socket__options.html">Peer_socket_options</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#ad94e37c8cca01f801f13e9e0e0bc857d">options</a> () const</td></tr>
<tr class="memdesc:ad94e37c8cca01f801f13e9e0e0bc857d inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies this socket's option set and returns that copy.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#ad94e37c8cca01f801f13e9e0e0bc857d">More...</a><br /></td></tr>
<tr class="separator:ad94e37c8cca01f801f13e9e0e0bc857d inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad81cc16fc6f0d353fdc1379e1dd4712 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structflow_1_1net__flow_1_1Peer__socket__info.html">Peer_socket_info</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#aad81cc16fc6f0d353fdc1379e1dd4712">info</a> () const</td></tr>
<tr class="memdesc:aad81cc16fc6f0d353fdc1379e1dd4712 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a structure containing the most up-to-date stats about this connection.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#aad81cc16fc6f0d353fdc1379e1dd4712">More...</a><br /></td></tr>
<tr class="separator:aad81cc16fc6f0d353fdc1379e1dd4712 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1f821dde38a7aa572651730744edbd8 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#aa1f821dde38a7aa572651730744edbd8">max_block_size</a> () const</td></tr>
<tr class="memdesc:aa1f821dde38a7aa572651730744edbd8 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">The maximum number of bytes of user data per received or sent packet on this connection.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#aa1f821dde38a7aa572651730744edbd8">More...</a><br /></td></tr>
<tr class="separator:aa1f821dde38a7aa572651730744edbd8 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74f6fd527766fdeb05a96c5c03729a00 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a74f6fd527766fdeb05a96c5c03729a00">disconnect_cause</a> () const</td></tr>
<tr class="memdesc:a74f6fd527766fdeb05a96c5c03729a00 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">The error code that perviously caused <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#af982953b5136c1df488066eacc293a78" title="Current State of the socket.">state()</a> to become <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a6a9bb727c8982f24bcf978c10c2c7345a6abcbd1be8478aa03e76aec9c540e14f" title="Neither future reads nor writes are possible, AND Node has disowned the Peer_socket.">State::S_CLOSED</a>, or success code if state is not CLOSED.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a74f6fd527766fdeb05a96c5c03729a00">More...</a><br /></td></tr>
<tr class="separator:a74f6fd527766fdeb05a96c5c03729a00 inherit pub_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classflow_1_1util_1_1Null__interface"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classflow_1_1util_1_1Null__interface')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classflow_1_1util_1_1Null__interface.html">flow::util::Null_interface</a></td></tr>
<tr class="memitem:a5916282577627e424a09884347eddbba inherit pub_methods_classflow_1_1util_1_1Null__interface"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Null__interface.html#a5916282577627e424a09884347eddbba">~Null_interface</a> ()=0</td></tr>
<tr class="memdesc:a5916282577627e424a09884347eddbba inherit pub_methods_classflow_1_1util_1_1Null__interface"><td class="mdescLeft">&#160;</td><td class="mdescRight">Boring <code>virtual</code> destructor.  <a href="classflow_1_1util_1_1Null__interface.html#a5916282577627e424a09884347eddbba">More...</a><br /></td></tr>
<tr class="separator:a5916282577627e424a09884347eddbba inherit pub_methods_classflow_1_1util_1_1Null__interface"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classflow_1_1log_1_1Log__context"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classflow_1_1log_1_1Log__context')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classflow_1_1log_1_1Log__context.html">flow::log::Log_context</a></td></tr>
<tr class="memitem:ae7100d2dd130d8f130e3e64fdb1f4fd9 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Log__context.html#ae7100d2dd130d8f130e3e64fdb1f4fd9">Log_context</a> (<a class="el" href="classflow_1_1log_1_1Logger.html">Logger</a> *logger=0)</td></tr>
<tr class="memdesc:ae7100d2dd130d8f130e3e64fdb1f4fd9 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs <a class="el" href="classflow_1_1log_1_1Log__context.html" title="Convenience class that simply stores a Logger and/or Component passed into a constructor; and returns...">Log_context</a> by storing the given pointer to a <a class="el" href="classflow_1_1log_1_1Logger.html" title="Interface that the user should implement, passing the implementing Logger into logging classes (Flow&#39;...">Logger</a> and a null <a class="el" href="classflow_1_1log_1_1Component.html" title="A light-weight class, each object storing a component payload encoding an enum value from enum type o...">Component</a>.  <a href="classflow_1_1log_1_1Log__context.html#ae7100d2dd130d8f130e3e64fdb1f4fd9">More...</a><br /></td></tr>
<tr class="separator:ae7100d2dd130d8f130e3e64fdb1f4fd9 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1ac7f30ab442c3c6aa6079335df6c9a inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memTemplParams" colspan="2">template&lt;typename Component_payload &gt; </td></tr>
<tr class="memitem:af1ac7f30ab442c3c6aa6079335df6c9a inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Log__context.html#af1ac7f30ab442c3c6aa6079335df6c9a">Log_context</a> (<a class="el" href="classflow_1_1log_1_1Logger.html">Logger</a> *logger, Component_payload component_payload)</td></tr>
<tr class="memdesc:af1ac7f30ab442c3c6aa6079335df6c9a inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs <a class="el" href="classflow_1_1log_1_1Log__context.html" title="Convenience class that simply stores a Logger and/or Component passed into a constructor; and returns...">Log_context</a> by storing the given pointer to a <a class="el" href="classflow_1_1log_1_1Logger.html" title="Interface that the user should implement, passing the implementing Logger into logging classes (Flow&#39;...">Logger</a> and a new <a class="el" href="classflow_1_1log_1_1Component.html" title="A light-weight class, each object storing a component payload encoding an enum value from enum type o...">Component</a> storing the specified generically typed payload (an <code>enum</code> value).  <a href="classflow_1_1log_1_1Log__context.html#af1ac7f30ab442c3c6aa6079335df6c9a">More...</a><br /></td></tr>
<tr class="separator:af1ac7f30ab442c3c6aa6079335df6c9a inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c57a7f44959a01ca9a1c948a6686cc0 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Log__context.html#a5c57a7f44959a01ca9a1c948a6686cc0">Log_context</a> (const <a class="el" href="classflow_1_1log_1_1Log__context.html">Log_context</a> &amp;src)</td></tr>
<tr class="memdesc:a5c57a7f44959a01ca9a1c948a6686cc0 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor that stores equal <code>Logger*</code> and <a class="el" href="classflow_1_1log_1_1Component.html" title="A light-weight class, each object storing a component payload encoding an enum value from enum type o...">Component</a> values as the source.  <a href="classflow_1_1log_1_1Log__context.html#a5c57a7f44959a01ca9a1c948a6686cc0">More...</a><br /></td></tr>
<tr class="separator:a5c57a7f44959a01ca9a1c948a6686cc0 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d4e624833d96bdafa1485ffff472509 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Log__context.html#a3d4e624833d96bdafa1485ffff472509">Log_context</a> (<a class="el" href="classflow_1_1log_1_1Log__context.html">Log_context</a> &amp;&amp;src)</td></tr>
<tr class="memdesc:a3d4e624833d96bdafa1485ffff472509 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="mdescLeft">&#160;</td><td class="mdescRight">Move constructor that makes this equal to <code>src</code>, while the latter becomes as-if default-constructed.  <a href="classflow_1_1log_1_1Log__context.html#a3d4e624833d96bdafa1485ffff472509">More...</a><br /></td></tr>
<tr class="separator:a3d4e624833d96bdafa1485ffff472509 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d628315d5a93908d47a281980d3113e inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classflow_1_1log_1_1Log__context.html">Log_context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Log__context.html#a5d628315d5a93908d47a281980d3113e">operator=</a> (const <a class="el" href="classflow_1_1log_1_1Log__context.html">Log_context</a> &amp;src)</td></tr>
<tr class="memdesc:a5d628315d5a93908d47a281980d3113e inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator that behaves similarly to the copy constructor.  <a href="classflow_1_1log_1_1Log__context.html#a5d628315d5a93908d47a281980d3113e">More...</a><br /></td></tr>
<tr class="separator:a5d628315d5a93908d47a281980d3113e inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae857197aecba8606c32296bc7bec308 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classflow_1_1log_1_1Log__context.html">Log_context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Log__context.html#aae857197aecba8606c32296bc7bec308">operator=</a> (<a class="el" href="classflow_1_1log_1_1Log__context.html">Log_context</a> &amp;&amp;src)</td></tr>
<tr class="memdesc:aae857197aecba8606c32296bc7bec308 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="mdescLeft">&#160;</td><td class="mdescRight">Move assignment operator that behaves similarly to the move constructor.  <a href="classflow_1_1log_1_1Log__context.html#aae857197aecba8606c32296bc7bec308">More...</a><br /></td></tr>
<tr class="separator:aae857197aecba8606c32296bc7bec308 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6bb8e4250586425631ef80063caf155 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Log__context.html#aa6bb8e4250586425631ef80063caf155">swap</a> (<a class="el" href="classflow_1_1log_1_1Log__context.html">Log_context</a> &amp;other)</td></tr>
<tr class="memdesc:aa6bb8e4250586425631ef80063caf155 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="mdescLeft">&#160;</td><td class="mdescRight">Swaps <a class="el" href="classflow_1_1log_1_1Logger.html" title="Interface that the user should implement, passing the implementing Logger into logging classes (Flow&#39;...">Logger</a> pointers and <a class="el" href="classflow_1_1log_1_1Component.html" title="A light-weight class, each object storing a component payload encoding an enum value from enum type o...">Component</a> objects held by <code>*this</code> and <code>other</code>.  <a href="classflow_1_1log_1_1Log__context.html#aa6bb8e4250586425631ef80063caf155">More...</a><br /></td></tr>
<tr class="separator:aa6bb8e4250586425631ef80063caf155 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4db395042b065b00398cd59845dcb4d inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classflow_1_1log_1_1Logger.html">Logger</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Log__context.html#af4db395042b065b00398cd59845dcb4d">get_logger</a> () const</td></tr>
<tr class="memdesc:af4db395042b065b00398cd59845dcb4d inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the stored <a class="el" href="classflow_1_1log_1_1Logger.html" title="Interface that the user should implement, passing the implementing Logger into logging classes (Flow&#39;...">Logger</a> pointer, particularly as many <code>FLOW_LOG_*()</code> macros expect.  <a href="classflow_1_1log_1_1Log__context.html#af4db395042b065b00398cd59845dcb4d">More...</a><br /></td></tr>
<tr class="separator:af4db395042b065b00398cd59845dcb4d inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a5fef42dc2cedf3c0d1a6e83beb2948 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classflow_1_1log_1_1Component.html">Component</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Log__context.html#a8a5fef42dc2cedf3c0d1a6e83beb2948">get_log_component</a> () const</td></tr>
<tr class="memdesc:a8a5fef42dc2cedf3c0d1a6e83beb2948 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns reference to the stored <a class="el" href="classflow_1_1log_1_1Component.html" title="A light-weight class, each object storing a component payload encoding an enum value from enum type o...">Component</a> object, particularly as many <code>FLOW_LOG_*()</code> macros expect.  <a href="classflow_1_1log_1_1Log__context.html#a8a5fef42dc2cedf3c0d1a6e83beb2948">More...</a><br /></td></tr>
<tr class="separator:a8a5fef42dc2cedf3c0d1a6e83beb2948 inherit pub_methods_classflow_1_1log_1_1Log__context"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a0744682e2dc9118b4da3f00bc5267bec"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a3ee868ebd8acd1788a5bed8cf66a349e">Ptr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a0744682e2dc9118b4da3f00bc5267bec">cast</a> (<a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#aa4f1af88393042e60159a3a67f0accbc">net_flow::Peer_socket::Ptr</a> sock)</td></tr>
<tr class="memdesc:a0744682e2dc9118b4da3f00bc5267bec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience method that polymorphically casts from <code><a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#aa4f1af88393042e60159a3a67f0accbc" title="Short-hand for ref-counted pointer to mutable values of type Target_type::element_type (a-la T*).">net_flow::Peer_socket::Ptr</a></code> to subclass pointer <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a3ee868ebd8acd1788a5bed8cf66a349e" title="Short-hand for shared_ptr to Peer_socket.">net_flow::asio::Peer_socket::Ptr</a></code>.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a0744682e2dc9118b4da3f00bc5267bec">More...</a><br /></td></tr>
<tr class="separator:a0744682e2dc9118b4da3f00bc5267bec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_classflow_1_1util_1_1Shared__ptr__alias__holder"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classflow_1_1util_1_1Shared__ptr__alias__holder')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html">flow::util::Shared_ptr_alias_holder&lt; boost::shared_ptr&lt; Peer_socket &gt; &gt;</a></td></tr>
<tr class="memitem:a55a247bb8fb2ec94b7cbfdd56be65a81 inherit pub_static_methods_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#aa4f1af88393042e60159a3a67f0accbc">Ptr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#a55a247bb8fb2ec94b7cbfdd56be65a81">ptr_cast</a> (const From_ptr &amp;ptr_to_cast)</td></tr>
<tr class="memdesc:a55a247bb8fb2ec94b7cbfdd56be65a81 inherit pub_static_methods_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides syntactic-sugary way to perform a <code>static_pointer_cast&lt;&gt;</code> from a compatible smart pointer type <code>From_ptr</code>, typically <code>From_ptr::element_type</code> being in the same class hierarchy as <code>Target_ptr::element_type</code>.  <a href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#a55a247bb8fb2ec94b7cbfdd56be65a81">More...</a><br /></td></tr>
<tr class="separator:a55a247bb8fb2ec94b7cbfdd56be65a81 inherit pub_static_methods_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a520b351b1463e585e278c8c7241b8fc8 inherit pub_static_methods_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#aef7998db71c60eeb5d1e3d1a97c14886">Const_ptr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#a520b351b1463e585e278c8c7241b8fc8">const_ptr_cast</a> (const From_ptr &amp;ptr_to_cast)</td></tr>
<tr class="memdesc:a520b351b1463e585e278c8c7241b8fc8 inherit pub_static_methods_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="mdescLeft">&#160;</td><td class="mdescRight">Identical to <a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#a55a247bb8fb2ec94b7cbfdd56be65a81" title="Provides syntactic-sugary way to perform a static_pointer_cast&lt;&gt; from a compatible smart pointer type...">ptr_cast()</a> but adds <code>const</code>-ness (immutability) to the pointed-to type.  <a href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#a520b351b1463e585e278c8c7241b8fc8">More...</a><br /></td></tr>
<tr class="separator:a520b351b1463e585e278c8c7241b8fc8 inherit pub_static_methods_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac242f13a290877e84e44165e00a5905c inherit pub_static_methods_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#aa4f1af88393042e60159a3a67f0accbc">Ptr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#ac242f13a290877e84e44165e00a5905c">dynamic_ptr_cast</a> (const From_ptr &amp;ptr_to_cast)</td></tr>
<tr class="memdesc:ac242f13a290877e84e44165e00a5905c inherit pub_static_methods_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equivalent to <a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#a55a247bb8fb2ec94b7cbfdd56be65a81" title="Provides syntactic-sugary way to perform a static_pointer_cast&lt;&gt; from a compatible smart pointer type...">ptr_cast()</a> but a <code>dynamic_pointer_cast</code> instead of static.  <a href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#ac242f13a290877e84e44165e00a5905c">More...</a><br /></td></tr>
<tr class="separator:ac242f13a290877e84e44165e00a5905c inherit pub_static_methods_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a013713e08c6537f91d6bdba29fcccdff inherit pub_static_methods_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#aef7998db71c60eeb5d1e3d1a97c14886">Const_ptr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#a013713e08c6537f91d6bdba29fcccdff">dynamic_const_ptr_cast</a> (const From_ptr &amp;ptr_to_cast)</td></tr>
<tr class="memdesc:a013713e08c6537f91d6bdba29fcccdff inherit pub_static_methods_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="mdescLeft">&#160;</td><td class="mdescRight">Identical to <a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#a520b351b1463e585e278c8c7241b8fc8" title="Identical to ptr_cast() but adds const-ness (immutability) to the pointed-to type.">const_ptr_cast()</a> but a <code>dynamic_pointer_cast</code> instead of static.  <a href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#a013713e08c6537f91d6bdba29fcccdff">More...</a><br /></td></tr>
<tr class="separator:a013713e08c6537f91d6bdba29fcccdff inherit pub_static_methods_classflow_1_1util_1_1Shared__ptr__alias__holder"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-types" name="pri-types"></a>
Private Types</h2></td></tr>
<tr class="memitem:a4e81d0e2882eb0de6573c3e77e8cc593"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a4e81d0e2882eb0de6573c3e77e8cc593">Target_bufs</a> = std::vector&lt; boost::asio::mutable_buffer &gt;</td></tr>
<tr class="memdesc:a4e81d0e2882eb0de6573c3e77e8cc593"><td class="mdescLeft">&#160;</td><td class="mdescRight">Short-hand for the <code>Mutable_buffer_sequence</code> concrete type for class-internal code.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a4e81d0e2882eb0de6573c3e77e8cc593">More...</a><br /></td></tr>
<tr class="separator:a4e81d0e2882eb0de6573c3e77e8cc593"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43f6f8c43343441121e00a9ec87ded7f"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a43f6f8c43343441121e00a9ec87ded7f">Target_bufs_ptr</a> = boost::shared_ptr&lt; <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a4e81d0e2882eb0de6573c3e77e8cc593">Target_bufs</a> &gt;</td></tr>
<tr class="memdesc:a43f6f8c43343441121e00a9ec87ded7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Short-hand for a low-cost-copyable smart pointer of <code>Target_bufs</code>.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a43f6f8c43343441121e00a9ec87ded7f">More...</a><br /></td></tr>
<tr class="separator:a43f6f8c43343441121e00a9ec87ded7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4dc5601d7943452aa378edbcd74de8f"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#aa4dc5601d7943452aa378edbcd74de8f">Source_bufs</a> = std::vector&lt; boost::asio::const_buffer &gt;</td></tr>
<tr class="memdesc:aa4dc5601d7943452aa378edbcd74de8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Short-hand for the <code>Const_buffer_sequence</code> concrete type for class-internal code.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#aa4dc5601d7943452aa378edbcd74de8f">More...</a><br /></td></tr>
<tr class="separator:aa4dc5601d7943452aa378edbcd74de8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd065aca0a21971d36c346d86767794d"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#acd065aca0a21971d36c346d86767794d">Source_bufs_ptr</a> = boost::shared_ptr&lt; <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#aa4dc5601d7943452aa378edbcd74de8f">Source_bufs</a> &gt;</td></tr>
<tr class="memdesc:acd065aca0a21971d36c346d86767794d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Short-hand for a low-cost-copyable smart pointer of <code>Source_bufs</code>.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#acd065aca0a21971d36c346d86767794d">More...</a><br /></td></tr>
<tr class="separator:acd065aca0a21971d36c346d86767794d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fbefd02156e25e5ffe8fa01c67656ce"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1fbefd02156e25e5ffe8fa01c67656ce">Handler_func</a> = <a class="el" href="classflow_1_1Function.html">Function</a>&lt; void(const <a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a> &amp;err_code, size_t op_result)&gt;</td></tr>
<tr class="memdesc:a1fbefd02156e25e5ffe8fa01c67656ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Short-hand for the <code>Task_engine</code>-compatible send and receive <code>Handler</code> concrete type for class-internal code.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1fbefd02156e25e5ffe8fa01c67656ce">More...</a><br /></td></tr>
<tr class="separator:a1fbefd02156e25e5ffe8fa01c67656ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-methods" name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:abac02ab0468161ea5ce431a2f53c4703"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#abac02ab0468161ea5ce431a2f53c4703">Peer_socket</a> (<a class="el" href="classflow_1_1log_1_1Logger.html">log::Logger</a> *logger_ptr, <a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4">util::Task_engine</a> *task_engine, const <a class="el" href="structflow_1_1net__flow_1_1Peer__socket__options.html">Peer_socket_options</a> &amp;opts)</td></tr>
<tr class="memdesc:abac02ab0468161ea5ce431a2f53c4703"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs object.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#abac02ab0468161ea5ce431a2f53c4703">More...</a><br /></td></tr>
<tr class="separator:abac02ab0468161ea5ce431a2f53c4703"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85e456ae997bae047e022d234bec9531"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a85e456ae997bae047e022d234bec9531">async_receive_impl</a> (<a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a43f6f8c43343441121e00a9ec87ded7f">Target_bufs_ptr</a> target, <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1fbefd02156e25e5ffe8fa01c67656ce">Handler_func</a> &amp;&amp;on_result, const <a class="el" href="namespaceflow.html#a9d9cc2eeb10d398cff5591d446b763b8">Fine_time_pt</a> &amp;wait_until)</td></tr>
<tr class="memdesc:a85e456ae997bae047e022d234bec9531"><td class="mdescLeft">&#160;</td><td class="mdescRight">De-templated implementation of all <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_receive()</a></code> methods.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a85e456ae997bae047e022d234bec9531">More...</a><br /></td></tr>
<tr class="separator:a85e456ae997bae047e022d234bec9531"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6c48bcfc9cab0b42216443f39fa8a4b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#ab6c48bcfc9cab0b42216443f39fa8a4b">async_send_impl</a> (<a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#acd065aca0a21971d36c346d86767794d">Source_bufs_ptr</a> source, <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1fbefd02156e25e5ffe8fa01c67656ce">Handler_func</a> &amp;&amp;on_result, const <a class="el" href="namespaceflow.html#a9d9cc2eeb10d398cff5591d446b763b8">Fine_time_pt</a> &amp;wait_until)</td></tr>
<tr class="memdesc:ab6c48bcfc9cab0b42216443f39fa8a4b"><td class="mdescLeft">&#160;</td><td class="mdescRight">De-templated implementation of all <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a33adc635f29071b10ea59802405d9b6c" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_send()</a></code> methods.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#ab6c48bcfc9cab0b42216443f39fa8a4b">More...</a><br /></td></tr>
<tr class="separator:ab6c48bcfc9cab0b42216443f39fa8a4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9e96966c7a8f5d35a34c0f5b3f65eb6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Node.html">Node</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#aa9e96966c7a8f5d35a34c0f5b3f65eb6">node_or_post_error</a> (<a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1fbefd02156e25e5ffe8fa01c67656ce">Handler_func</a> &amp;&amp;on_result)</td></tr>
<tr class="memdesc:aa9e96966c7a8f5d35a34c0f5b3f65eb6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Helper that returns the <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Node.html" title="A subclass of net_flow::Node that adds the ability to easily and directly use net_flow sockets in gen...">net_flow::asio::Node</a></code> that generated <code>*this</code>; unless <code>*this</code> is closed; in which case it returns null after posting an error-case invocation of the user handler <code>on_result</code>.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#aa9e96966c7a8f5d35a34c0f5b3f65eb6">More...</a><br /></td></tr>
<tr class="separator:aa9e96966c7a8f5d35a34c0f5b3f65eb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa727c33c3eeeb217d50fcd451096ded8"><td class="memTemplParams" colspan="2">template&lt;typename Handler &gt; </td></tr>
<tr class="memitem:aa727c33c3eeeb217d50fcd451096ded8"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1fbefd02156e25e5ffe8fa01c67656ce">Handler_func</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#aa727c33c3eeeb217d50fcd451096ded8">handler_func</a> (Handler &amp;&amp;on_result)</td></tr>
<tr class="memdesc:aa727c33c3eeeb217d50fcd451096ded8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a functor that essentially performs <code>post()</code> <code>on_result</code> onto <code>*async_task_engine()</code> in a way suitable for a boost.asio-compatible async-op.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#aa727c33c3eeeb217d50fcd451096ded8">More...</a><br /></td></tr>
<tr class="separator:aa727c33c3eeeb217d50fcd451096ded8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a714f570918cfa8d225d75c787e7ac573"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4">util::Task_engine</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a714f570918cfa8d225d75c787e7ac573">m_target_task_engine</a></td></tr>
<tr class="memdesc:a714f570918cfa8d225d75c787e7ac573"><td class="mdescLeft">&#160;</td><td class="mdescRight">See <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a714f570918cfa8d225d75c787e7ac573">More...</a><br /></td></tr>
<tr class="separator:a714f570918cfa8d225d75c787e7ac573"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a6db9d28bd448a131448276ee03de1e6d"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a6db9d28bd448a131448276ee03de1e6d">Node</a></td></tr>
<tr class="memdesc:a6db9d28bd448a131448276ee03de1e6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Similarly to the equivalent <code>friend</code> in <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html" title="A peer (non-server) socket operating over the Flow network protocol, with optional stream-of-bytes an...">net_flow::Peer_socket</a>.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a6db9d28bd448a131448276ee03de1e6d">More...</a><br /></td></tr>
<tr class="separator:a6db9d28bd448a131448276ee03de1e6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa929c4c93d814d46bf195c874af63fee"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#aa929c4c93d814d46bf195c874af63fee">net_flow::Node</a></td></tr>
<tr class="memdesc:aa929c4c93d814d46bf195c874af63fee"><td class="mdescLeft">&#160;</td><td class="mdescRight">As of this writing, it is needed for <a class="el" href="classflow_1_1net__flow_1_1Node.html#aa42efbce8c5ea908a253fca2e9b2a02c" title="Returns a raw pointer to newly created Peer_socket or sub-instance like asio::Peer_socket,...">Node::sock_create_forward_plus_ctor_args()</a>.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#aa929c4c93d814d46bf195c874af63fee">More...</a><br /></td></tr>
<tr class="separator:aa929c4c93d814d46bf195c874af63fee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8497776b61df32a79707c264f8f2422b"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a8497776b61df32a79707c264f8f2422b">operator&lt;&lt;</a> (std::ostream &amp;os, const <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html">Peer_socket</a> *sock)</td></tr>
<tr class="memdesc:a8497776b61df32a79707c264f8f2422b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints string representation of given socket to given standard <code>ostream</code> and returns the latter.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a8497776b61df32a79707c264f8f2422b">More...</a><br /></td></tr>
<tr class="separator:a8497776b61df32a79707c264f8f2422b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="related" name="related"></a>
Related Functions</h2></td></tr>
<tr><td class="ititle" colspan="2"><p >(Note that these are not member functions.) </p>
</td></tr>
<tr class="memitem:a8497776b61df32a79707c264f8f2422b"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a8497776b61df32a79707c264f8f2422b">operator&lt;&lt;</a> (std::ostream &amp;os, const <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html">Peer_socket</a> *sock)</td></tr>
<tr class="memdesc:a8497776b61df32a79707c264f8f2422b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints string representation of given socket to given standard <code>ostream</code> and returns the latter.  <a href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a8497776b61df32a79707c264f8f2422b">More...</a><br /></td></tr>
<tr class="separator:a8497776b61df32a79707c264f8f2422b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header related_classflow_1_1net__flow_1_1Peer__socket"><td colspan="2" onclick="javascript:toggleInherit('related_classflow_1_1net__flow_1_1Peer__socket')"><img src="closed.png" alt="-"/>&#160;Related Functions inherited from <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html">flow::net_flow::Peer_socket</a></td></tr>
<tr class="memitem:a8497776b61df32a79707c264f8f2422b inherit related_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a8497776b61df32a79707c264f8f2422b">operator&lt;&lt;</a> (std::ostream &amp;os, const <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html">Peer_socket</a> *sock)</td></tr>
<tr class="memdesc:a8497776b61df32a79707c264f8f2422b inherit related_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints string representation of given socket to given standard <code>ostream</code> and returns the latter.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a8497776b61df32a79707c264f8f2422b">More...</a><br /></td></tr>
<tr class="separator:a8497776b61df32a79707c264f8f2422b inherit related_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_classflow_1_1net__flow_1_1Peer__socket"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classflow_1_1net__flow_1_1Peer__socket')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html">flow::net_flow::Peer_socket</a></td></tr>
<tr class="memitem:a5003c554807f5b5b58989ad58be48d42 inherit pro_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a5003c554807f5b5b58989ad58be48d42">Peer_socket</a> (<a class="el" href="classflow_1_1log_1_1Logger.html">log::Logger</a> *logger_ptr, <a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4">util::Task_engine</a> *task_engine, const <a class="el" href="structflow_1_1net__flow_1_1Peer__socket__options.html">Peer_socket_options</a> &amp;opts)</td></tr>
<tr class="memdesc:a5003c554807f5b5b58989ad58be48d42 inherit pro_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs object; initializes most values to well-defined (0, empty, etc.) but not necessarily meaningful values.  <a href="classflow_1_1net__flow_1_1Peer__socket.html#a5003c554807f5b5b58989ad58be48d42">More...</a><br /></td></tr>
<tr class="separator:a5003c554807f5b5b58989ad58be48d42 inherit pro_methods_classflow_1_1net__flow_1_1Peer__socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >A <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html" title="A peer (non-server) socket operating over the Flow network protocol, with optional stream-of-bytes an...">net_flow::Peer_socket</a> that adds integration with boost.asio. </p>
<p >See <a class="el" href="classflow_1_1net__flow_1_1Node.html" title="An object of this class is a single Flow-protocol networking node, in the sense that: (1) it has a di...">net_flow::Node</a> for a discussion of the topic of boost.asio integration. A <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html" title="A net_flow::Peer_socket that adds integration with boost.asio.">net_flow::asio::Peer_socket</a> <em>is</em> a <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html" title="A peer (non-server) socket operating over the Flow network protocol, with optional stream-of-bytes an...">net_flow::Peer_socket</a> with all that functionality, plus APIs (such as <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a33adc635f29071b10ea59802405d9b6c" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_send()</a>, <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_receive()</a>) that accomplish boost.asio-style asynchronous operations with a standard <code>boost::asio::io_context</code> (a/k/a <a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4" title="Short-hand for boost.asio event service, the central class of boost.asio.">flow::util::Task_engine</a>).</p>
<p >As of this writing, <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a3ee868ebd8acd1788a5bed8cf66a349e" title="Short-hand for shared_ptr to Peer_socket.">asio::Peer_socket::Ptr</a></code>s are generated by <code><a class="el" href="classflow_1_1net__flow_1_1Node.html#a893c8393930110e2aa0823583e37cabd" title="Initiates an active connect to the specified remote Flow server.">asio::Node::connect()</a></code>, <code><a class="el" href="classflow_1_1net__flow_1_1Server__socket.html#aeea8554e23c8d743ca4956c772adbf24" title="Non-blocking accept: obtain socket for the least recently established not-yet-obtained peer connectio...">asio::Server_socket::accept()</a></code>, and their derivatives. The underlying <code>io_context</code> (a/k/a <a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4" title="Short-hand for boost.asio event service, the central class of boost.asio.">flow::util::Task_engine</a>) is carried forward from the factory object that generated and returned the <code>Ptr</code>. It can be overwritten via <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a03a8a4b4ab5338d80b5d78a03279510a" title="Overwrites the value to be returned by next async_task_engine().">set_async_task_engine()</a>. </p>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00038">38</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a1fbefd02156e25e5ffe8fa01c67656ce" name="a1fbefd02156e25e5ffe8fa01c67656ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1fbefd02156e25e5ffe8fa01c67656ce">&#9670;&nbsp;</a></span>Handler_func</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1fbefd02156e25e5ffe8fa01c67656ce">flow::net_flow::asio::Peer_socket::Handler_func</a> =  <a class="el" href="classflow_1_1Function.html">Function</a>&lt;void (const <a class="el" href="namespaceflow.html#a29eaaa9d0fac4ce87d8b969222dbed09">Error_code</a>&amp; err_code, size_t op_result)&gt;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Short-hand for the <code>Task_engine</code>-compatible send and receive <code>Handler</code> concrete type for class-internal code. </p>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00309">309</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

</div>
</div>
<a id="a3ee868ebd8acd1788a5bed8cf66a349e" name="a3ee868ebd8acd1788a5bed8cf66a349e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ee868ebd8acd1788a5bed8cf66a349e">&#9670;&nbsp;</a></span>Ptr</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a3ee868ebd8acd1788a5bed8cf66a349e">flow::net_flow::asio::Peer_socket::Ptr</a> =  boost::shared_ptr&lt;<a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html">Peer_socket</a>&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Short-hand for <code>shared_ptr</code> to <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html" title="A net_flow::Peer_socket that adds integration with boost.asio.">Peer_socket</a>. </p>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00046">46</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

</div>
</div>
<a id="aa4dc5601d7943452aa378edbcd74de8f" name="aa4dc5601d7943452aa378edbcd74de8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4dc5601d7943452aa378edbcd74de8f">&#9670;&nbsp;</a></span>Source_bufs</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#aa4dc5601d7943452aa378edbcd74de8f">flow::net_flow::asio::Peer_socket::Source_bufs</a> =  std::vector&lt;boost::asio::const_buffer&gt;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Short-hand for the <code>Const_buffer_sequence</code> concrete type for class-internal code. </p>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00305">305</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

</div>
</div>
<a id="acd065aca0a21971d36c346d86767794d" name="acd065aca0a21971d36c346d86767794d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd065aca0a21971d36c346d86767794d">&#9670;&nbsp;</a></span>Source_bufs_ptr</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#acd065aca0a21971d36c346d86767794d">flow::net_flow::asio::Peer_socket::Source_bufs_ptr</a> =  boost::shared_ptr&lt;<a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#aa4dc5601d7943452aa378edbcd74de8f">Source_bufs</a>&gt;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Short-hand for a low-cost-copyable smart pointer of <code>Source_bufs</code>. </p>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00307">307</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

</div>
</div>
<a id="a4e81d0e2882eb0de6573c3e77e8cc593" name="a4e81d0e2882eb0de6573c3e77e8cc593"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e81d0e2882eb0de6573c3e77e8cc593">&#9670;&nbsp;</a></span>Target_bufs</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a4e81d0e2882eb0de6573c3e77e8cc593">flow::net_flow::asio::Peer_socket::Target_bufs</a> =  std::vector&lt;boost::asio::mutable_buffer&gt;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Short-hand for the <code>Mutable_buffer_sequence</code> concrete type for class-internal code. </p>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00301">301</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

</div>
</div>
<a id="a43f6f8c43343441121e00a9ec87ded7f" name="a43f6f8c43343441121e00a9ec87ded7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43f6f8c43343441121e00a9ec87ded7f">&#9670;&nbsp;</a></span>Target_bufs_ptr</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a43f6f8c43343441121e00a9ec87ded7f">flow::net_flow::asio::Peer_socket::Target_bufs_ptr</a> =  boost::shared_ptr&lt;<a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a4e81d0e2882eb0de6573c3e77e8cc593">Target_bufs</a>&gt;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Short-hand for a low-cost-copyable smart pointer of <code>Target_bufs</code>. </p>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00303">303</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a0101eeb10a910cb7dfb5a4b8016b8138" name="a0101eeb10a910cb7dfb5a4b8016b8138"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0101eeb10a910cb7dfb5a4b8016b8138">&#9670;&nbsp;</a></span>~Peer_socket()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">flow::net_flow::asio::Peer_socket::~Peer_socket </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Boring <code>virtual</code> destructor as in superclass. See notes there. </p>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8cpp_source.html#l00037">37</a> of file <a class="el" href="asio_2peer__socket_8cpp_source.html">peer_socket.cpp</a>.</p>

<p class="reference">References <a class="el" href="log_8hpp_source.html#l00227">FLOW_LOG_TRACE</a>.</p>

</div>
</div>
<a id="abac02ab0468161ea5ce431a2f53c4703" name="abac02ab0468161ea5ce431a2f53c4703"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abac02ab0468161ea5ce431a2f53c4703">&#9670;&nbsp;</a></span>Peer_socket()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">flow::net_flow::asio::Peer_socket::Peer_socket </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classflow_1_1log_1_1Logger.html">log::Logger</a> *&#160;</td>
          <td class="paramname"><em>logger_ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4">util::Task_engine</a> *&#160;</td>
          <td class="paramname"><em>task_engine</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structflow_1_1net__flow_1_1Peer__socket__options.html">Peer_socket_options</a> &amp;&#160;</td>
          <td class="paramname"><em>opts</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructs object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">logger_ptr</td><td>See superclass. </td></tr>
    <tr><td class="paramname">task_engine</td><td>See superclass. </td></tr>
    <tr><td class="paramname">opts</td><td>See superclass. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8cpp_source.html#l00028">28</a> of file <a class="el" href="asio_2peer__socket_8cpp_source.html">peer_socket.cpp</a>.</p>

<p class="reference">References <a class="el" href="log_8hpp_source.html#l00227">FLOW_LOG_TRACE</a>.</p>

<p class="reference">Referenced by <a class="el" href="asio_2peer__socket_8cpp_source.html#l00061">async_receive_impl()</a>, and <a class="el" href="asio_2peer__socket_8cpp_source.html#l00102">async_send_impl()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_abac02ab0468161ea5ce431a2f53c4703_icgraph.svg" width="576" height="131"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a98186f8257f1f7b49dbbbc13c0dda7fe" name="a98186f8257f1f7b49dbbbc13c0dda7fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98186f8257f1f7b49dbbbc13c0dda7fe">&#9670;&nbsp;</a></span>async_receive() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Rep , typename Period , typename Mutable_buffer_sequence , typename Handler &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void flow::net_flow::asio::Peer_socket::async_receive </td>
          <td>(</td>
          <td class="paramtype">const Mutable_buffer_sequence &amp;&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const boost::chrono::duration&lt; Rep, Period &gt; &amp;&#160;</td>
          <td class="paramname"><em>max_wait</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Handler &amp;&amp;&#160;</td>
          <td class="paramname"><em>on_result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>boost.asio-style asynchronous version that essentially performs non-<code>nullptr_t</code> <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b" title="Blocking (synchronous) version of receive().">net_flow::Peer_socket::sync_receive()</a> in the background and invokes the given handler via the saved <code>Task_engine *(<a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>)</code>, as if by <code>post(Task_engine&amp;)</code>. </p>
<p >The semantics are identical to the similar <code><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b" title="Blocking (synchronous) version of receive().">sync_receive()</a></code>, except that the operation does not block the calling thread; and the results are delivered to the supplied handler <code>on_result</code> instead of to the caller.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Rep</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#aeb88e9253cc3f52269cb762c8e57e6d0" title="Receives (consumes from the Receive buffer) bytes of data, up to a given maximum cumulative number of...">net_flow::Peer_socket::receive()</a>. </td></tr>
    <tr><td class="paramname">Period</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#aeb88e9253cc3f52269cb762c8e57e6d0" title="Receives (consumes from the Receive buffer) bytes of data, up to a given maximum cumulative number of...">net_flow::Peer_socket::receive()</a>. </td></tr>
    <tr><td class="paramname">Mutable_buffer_sequence</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#aeb88e9253cc3f52269cb762c8e57e6d0" title="Receives (consumes from the Receive buffer) bytes of data, up to a given maximum cumulative number of...">net_flow::Peer_socket::receive()</a>. </td></tr>
    <tr><td class="paramname">Handler</td><td>A type such that if <code>Handler h</code>, then a function equivalent to <code>{ h(err_code, n); }</code> can be <code>post()</code>ed onto an <code>Task_engine</code>, with <code>const Error_code&amp; err_code</code> and <code>size_t n</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">target</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#aeb88e9253cc3f52269cb762c8e57e6d0" title="Receives (consumes from the Receive buffer) bytes of data, up to a given maximum cumulative number of...">net_flow::Peer_socket::receive()</a>. </td></tr>
    <tr><td class="paramname">on_result</td><td>Handler to be executed asynchronously within the saved <code>Task_engine</code>. The error code and bytes-transmitted values passed to it, in that order, are identical to those out-arg/returned values in <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b" title="Blocking (synchronous) version of receive().">net_flow::Peer_socket::sync_receive()</a>. Note: This overload corresponds to the non-<code>nullptr_t</code> <code><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b" title="Blocking (synchronous) version of receive().">sync_receive()</a></code> overload. Note: Use <code>bind_executor(S, F)</code> to bind your handler to the <a class="el" href="namespaceflow_1_1util.html#aa59354ab408e978c8a7bda1a4706924e" title="Short-hand for boost.asio strand, an ancillary class that works with Task_engine for advanced task sc...">util::Strand</a> <code>S</code>. </td></tr>
    <tr><td class="paramname">max_wait</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b" title="Blocking (synchronous) version of receive().">net_flow::Peer_socket::sync_receive()</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00411">411</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

<p class="reference">References <a class="el" href="asio_2peer__socket_8cpp_source.html#l00061">async_receive_impl()</a>, <a class="el" href="util_2detail_2util_8hpp_source.html#l00042">flow::util::chrono_duration_from_now_to_fine_time_pt()</a>, and <a class="el" href="asio_2peer__socket_8hpp_source.html#l00482">handler_func()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_a98186f8257f1f7b49dbbbc13c0dda7fe_cgraph.svg" width="802" height="248"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a99e10ad940f00853070a05d93d70173d" name="a99e10ad940f00853070a05d93d70173d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a99e10ad940f00853070a05d93d70173d">&#9670;&nbsp;</a></span>async_receive() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Mutable_buffer_sequence , typename Handler &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void flow::net_flow::asio::Peer_socket::async_receive </td>
          <td>(</td>
          <td class="paramtype">const Mutable_buffer_sequence &amp;&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Handler &amp;&amp;&#160;</td>
          <td class="paramname"><em>on_result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Equivalent to <code>async_receive(target, duration::max(), on_result)</code>; i.e., <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_receive()</a></code> with no timeout. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Mutable_buffer_sequence</td><td>See other <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_receive()</a>. </td></tr>
    <tr><td class="paramname">Handler</td><td>See other <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_receive()</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">target</td><td>See other <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_receive()</a>. </td></tr>
    <tr><td class="paramname">on_result</td><td>See other <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_receive()</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00431">431</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

<p class="reference">References <a class="el" href="asio_2peer__socket_8cpp_source.html#l00061">async_receive_impl()</a>, and <a class="el" href="asio_2peer__socket_8hpp_source.html#l00482">handler_func()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_a99e10ad940f00853070a05d93d70173d_cgraph.svg" width="802" height="215"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="aa312348ba3e68d41d1341d3d6d487abc" name="aa312348ba3e68d41d1341d3d6d487abc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa312348ba3e68d41d1341d3d6d487abc">&#9670;&nbsp;</a></span>async_receive() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Rep , typename Period , typename Handler &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void flow::net_flow::asio::Peer_socket::async_receive </td>
          <td>(</td>
          <td class="paramtype">std::nullptr_t&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const boost::chrono::duration&lt; Rep, Period &gt; &amp;&#160;</td>
          <td class="paramname"><em>max_wait</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Handler &amp;&amp;&#160;</td>
          <td class="paramname"><em>on_result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>boost.asio-style asynchronous version that essentially performs a <code>nullptr_t</code> <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b" title="Blocking (synchronous) version of receive().">net_flow::Peer_socket::sync_receive()</a> in the background and invokes the given handler via the saved <code>Task_engine *(<a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>)</code>, as if by <code>post(Task_engine&amp;)</code>. </p>
<p >The semantics are identical to the similar <code><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b" title="Blocking (synchronous) version of receive().">sync_receive()</a></code>, except that the operation does not block the calling thread; and the results are delivered to the supplied handler <code>on_result</code> instead of to the caller.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Rep</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#aeb88e9253cc3f52269cb762c8e57e6d0" title="Receives (consumes from the Receive buffer) bytes of data, up to a given maximum cumulative number of...">net_flow::Peer_socket::receive()</a>. </td></tr>
    <tr><td class="paramname">Period</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#aeb88e9253cc3f52269cb762c8e57e6d0" title="Receives (consumes from the Receive buffer) bytes of data, up to a given maximum cumulative number of...">net_flow::Peer_socket::receive()</a>. </td></tr>
    <tr><td class="paramname">Handler</td><td>A type such that if <code>Handler h</code>, then a function equivalent to <code>{ h(err_code, n); }</code> can be <code>post()</code>ed onto an <code>Task_engine</code>, with <code>const Error_code&amp; err_code</code> and <code>size_t n</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">on_result</td><td>Handler to be executed asynchronously within the saved <code>Task_engine</code>. The error code and bytes-transmitted values passed to it, in that order, are identical to those out-arg/returned values in <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b" title="Blocking (synchronous) version of receive().">net_flow::Peer_socket::sync_receive()</a>. Note: This overload corresponds to the <code>nullptr_t</code> <code><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b" title="Blocking (synchronous) version of receive().">sync_receive()</a></code> overload. Therefore, the bytes-transmitted value passed to the handler is always 0. Note: Use <code>bind_executor(S, F)</code> to bind your handler to the <a class="el" href="namespaceflow_1_1util.html#aa59354ab408e978c8a7bda1a4706924e" title="Short-hand for boost.asio strand, an ancillary class that works with Task_engine for advanced task sc...">util::Strand</a> <code>S</code>. </td></tr>
    <tr><td class="paramname">max_wait</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a256b77e546fff9394ef8d509e2ae771b" title="Blocking (synchronous) version of receive().">net_flow::Peer_socket::sync_receive()</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00422">422</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

<p class="reference">References <a class="el" href="asio_2peer__socket_8cpp_source.html#l00061">async_receive_impl()</a>, <a class="el" href="util_2detail_2util_8hpp_source.html#l00042">flow::util::chrono_duration_from_now_to_fine_time_pt()</a>, and <a class="el" href="asio_2peer__socket_8hpp_source.html#l00482">handler_func()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_aa312348ba3e68d41d1341d3d6d487abc_cgraph.svg" width="802" height="248"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a1906293d0b039f95f683d02c30ec353c" name="a1906293d0b039f95f683d02c30ec353c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1906293d0b039f95f683d02c30ec353c">&#9670;&nbsp;</a></span>async_receive() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Handler &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void flow::net_flow::asio::Peer_socket::async_receive </td>
          <td>(</td>
          <td class="paramtype">std::nullptr_t&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Handler &amp;&amp;&#160;</td>
          <td class="paramname"><em>on_result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Equivalent to <code>async_receive(nullptr, duration::max(), on_result)</code>; i.e., <code>async_receive(nullptr)</code> with no timeout. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Handler</td><td>See other <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_receive()</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">on_result</td><td>See other <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_receive()</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00440">440</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

<p class="reference">References <a class="el" href="asio_2peer__socket_8cpp_source.html#l00061">async_receive_impl()</a>, and <a class="el" href="asio_2peer__socket_8hpp_source.html#l00482">handler_func()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_a1906293d0b039f95f683d02c30ec353c_cgraph.svg" width="802" height="215"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a85e456ae997bae047e022d234bec9531" name="a85e456ae997bae047e022d234bec9531"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a85e456ae997bae047e022d234bec9531">&#9670;&nbsp;</a></span>async_receive_impl()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void flow::net_flow::asio::Peer_socket::async_receive_impl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a43f6f8c43343441121e00a9ec87ded7f">Target_bufs_ptr</a>&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1fbefd02156e25e5ffe8fa01c67656ce">Handler_func</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>on_result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceflow.html#a9d9cc2eeb10d398cff5591d446b763b8">Fine_time_pt</a> &amp;&#160;</td>
          <td class="paramname"><em>wait_until</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>De-templated implementation of all <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_receive()</a></code> methods. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">target</td><td>Ref-counted pointer to copy of <code>target</code> arg for non-<code>nullptr_t</code> <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_receive()</a></code> methods; or null in the case of <code>async_receive(nullptr_t)</code> methods. </td></tr>
    <tr><td class="paramname">on_result</td><td><code>handler_func(on_result)</code>, where <code>on_result</code> is the user's <code>async_*()</code> method arg. </td></tr>
    <tr><td class="paramname">wait_until</td><td>See <code>max_wait</code> arg on the originating <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_receive()</a></code> method. This is absolute timeout time point derived from it; zero-valued if no timeout. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8cpp_source.html#l00061">61</a> of file <a class="el" href="asio_2peer__socket_8cpp_source.html">peer_socket.cpp</a>.</p>

<p class="reference">References <a class="el" href="asio_2peer__socket_8cpp_source.html#l00152">cast()</a>, <a class="el" href="asio_2peer__socket_8cpp_source.html#l00132">node_or_post_error()</a>, <a class="el" href="asio_2peer__socket_8cpp_source.html#l00028">Peer_socket()</a>, and <a class="el" href="classflow_1_1net__flow_1_1Event__set.html#a19cc3a286c8a11c986d2a59ec1e39a71a7cedcbdde2b86daeb1268c63c6cb6b88">flow::net_flow::Event_set::S_PEER_SOCKET_READABLE</a>.</p>

<p class="reference">Referenced by <a class="el" href="asio_2peer__socket_8hpp_source.html#l00411">async_receive()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_a85e456ae997bae047e022d234bec9531_cgraph.svg" width="579" height="187"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_a85e456ae997bae047e022d234bec9531_icgraph.svg" width="328" height="59"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a33adc635f29071b10ea59802405d9b6c" name="a33adc635f29071b10ea59802405d9b6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33adc635f29071b10ea59802405d9b6c">&#9670;&nbsp;</a></span>async_send() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Rep , typename Period , typename Const_buffer_sequence , typename Handler &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void flow::net_flow::asio::Peer_socket::async_send </td>
          <td>(</td>
          <td class="paramtype">const Const_buffer_sequence &amp;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const boost::chrono::duration&lt; Rep, Period &gt; &amp;&#160;</td>
          <td class="paramname"><em>max_wait</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Handler &amp;&amp;&#160;</td>
          <td class="paramname"><em>on_result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>boost.asio-style asynchronous version that essentially performs non-<code>nullptr_t</code> <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2" title="Blocking (synchronous) version of send().">net_flow::Peer_socket::sync_send()</a> in the background and invokes the given handler via the saved <code>Task_engine *(<a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>)</code>, as if by <code>post(Task_engine&amp;)</code>. </p>
<p >The semantics are identical to the similar <code><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2" title="Blocking (synchronous) version of send().">sync_send()</a></code>, except that the operation does not block the calling thread; and the results are delivered to the supplied handler <code>on_result</code> instead of to the caller.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Rep</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#af90b656d7e0b7e746b8beb4e24717cec" title="Sends (adds to the Send buffer) the given bytes of data up to a maximum internal buffer size; and asy...">net_flow::Peer_socket::send()</a>. </td></tr>
    <tr><td class="paramname">Period</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#af90b656d7e0b7e746b8beb4e24717cec" title="Sends (adds to the Send buffer) the given bytes of data up to a maximum internal buffer size; and asy...">net_flow::Peer_socket::send()</a>. </td></tr>
    <tr><td class="paramname">Const_buffer_sequence</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#af90b656d7e0b7e746b8beb4e24717cec" title="Sends (adds to the Send buffer) the given bytes of data up to a maximum internal buffer size; and asy...">net_flow::Peer_socket::send()</a>. </td></tr>
    <tr><td class="paramname">Handler</td><td>A type such that if <code>Handler h</code>, then a function equivalent to <code>{ h(err_code, n); }</code> can be <code>post()</code>ed onto an <code>Task_engine</code>, with <code>const Error_code&amp; err_code</code> and <code>size_t n</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#af90b656d7e0b7e746b8beb4e24717cec" title="Sends (adds to the Send buffer) the given bytes of data up to a maximum internal buffer size; and asy...">net_flow::Peer_socket::send()</a>. </td></tr>
    <tr><td class="paramname">on_result</td><td>Handler to be executed asynchronously within the saved <code>Task_engine</code>. The error code and bytes-transmitted values passed to it, in that order, are identical to those out-arg/returned values in <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2" title="Blocking (synchronous) version of send().">net_flow::Peer_socket::sync_send()</a>. Note: This overload corresponds to the non-<code>nullptr_t</code> <code><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2" title="Blocking (synchronous) version of send().">sync_send()</a></code> overload. Note: Use <code>bind_executor(S, F)</code> to bind your handler to the <a class="el" href="namespaceflow_1_1util.html#aa59354ab408e978c8a7bda1a4706924e" title="Short-hand for boost.asio strand, an ancillary class that works with Task_engine for advanced task sc...">util::Strand</a> <code>S</code>. </td></tr>
    <tr><td class="paramname">max_wait</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2" title="Blocking (synchronous) version of send().">net_flow::Peer_socket::sync_send()</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00446">446</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

<p class="reference">References <a class="el" href="asio_2peer__socket_8cpp_source.html#l00102">async_send_impl()</a>, <a class="el" href="util_2detail_2util_8hpp_source.html#l00042">flow::util::chrono_duration_from_now_to_fine_time_pt()</a>, and <a class="el" href="asio_2peer__socket_8hpp_source.html#l00482">handler_func()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_a33adc635f29071b10ea59802405d9b6c_cgraph.svg" width="834" height="248"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a3caaf38ad1ae9c34c7c5b631a562d0c3" name="a3caaf38ad1ae9c34c7c5b631a562d0c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3caaf38ad1ae9c34c7c5b631a562d0c3">&#9670;&nbsp;</a></span>async_send() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Const_buffer_sequence , typename Handler &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void flow::net_flow::asio::Peer_socket::async_send </td>
          <td>(</td>
          <td class="paramtype">const Const_buffer_sequence &amp;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Handler &amp;&amp;&#160;</td>
          <td class="paramname"><em>on_result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Equivalent to <code>async_send(target, duration::max(), on_result)</code>; i.e., <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a33adc635f29071b10ea59802405d9b6c" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_send()</a></code> with no timeout. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Const_buffer_sequence</td><td>See other <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a33adc635f29071b10ea59802405d9b6c" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_send()</a>. </td></tr>
    <tr><td class="paramname">Handler</td><td>See other <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a33adc635f29071b10ea59802405d9b6c" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_send()</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>See other <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a33adc635f29071b10ea59802405d9b6c" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_send()</a>. </td></tr>
    <tr><td class="paramname">on_result</td><td>See other <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a33adc635f29071b10ea59802405d9b6c" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_send()</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00466">466</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

<p class="reference">References <a class="el" href="asio_2peer__socket_8cpp_source.html#l00102">async_send_impl()</a>, and <a class="el" href="asio_2peer__socket_8hpp_source.html#l00482">handler_func()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_a3caaf38ad1ae9c34c7c5b631a562d0c3_cgraph.svg" width="834" height="215"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a03edb7266f89a8fdc5668e7ed3e039a1" name="a03edb7266f89a8fdc5668e7ed3e039a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03edb7266f89a8fdc5668e7ed3e039a1">&#9670;&nbsp;</a></span>async_send() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Rep , typename Period , typename Handler &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void flow::net_flow::asio::Peer_socket::async_send </td>
          <td>(</td>
          <td class="paramtype">std::nullptr_t&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const boost::chrono::duration&lt; Rep, Period &gt; &amp;&#160;</td>
          <td class="paramname"><em>max_wait</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Handler &amp;&amp;&#160;</td>
          <td class="paramname"><em>on_result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>boost.asio-style asynchronous version that essentially performs a <code>nullptr_t</code> <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2" title="Blocking (synchronous) version of send().">net_flow::Peer_socket::sync_send()</a> in the background and invokes the given handler via the saved <code>Task_engine *(<a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>)</code>, as if by <code>post(Task_engine&amp;)</code>. </p>
<p >The semantics are identical to the similar <code><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2" title="Blocking (synchronous) version of send().">sync_send()</a></code>, except that the operation does not block the calling thread; and the results are delivered to the supplied handler <code>on_result</code> instead of to the caller.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Rep</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#af90b656d7e0b7e746b8beb4e24717cec" title="Sends (adds to the Send buffer) the given bytes of data up to a maximum internal buffer size; and asy...">net_flow::Peer_socket::send()</a>. </td></tr>
    <tr><td class="paramname">Period</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#af90b656d7e0b7e746b8beb4e24717cec" title="Sends (adds to the Send buffer) the given bytes of data up to a maximum internal buffer size; and asy...">net_flow::Peer_socket::send()</a>. </td></tr>
    <tr><td class="paramname">Handler</td><td>A type such that if <code>Handler h</code>, then a function equivalent to <code>{ h(err_code, n); }</code> can be <code>post()</code>ed onto an <code>Task_engine</code>, with <code>const Error_code&amp; err_code</code> and <code>size_t n</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">on_result</td><td>Handler to be executed asynchronously within the saved <code>Task_engine</code>. The error code and bytes-transmitted values passed to it, in that order, are identical to those out-arg/returned values in <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2" title="Blocking (synchronous) version of send().">net_flow::Peer_socket::sync_send()</a>. Note: This overload corresponds to the <code>nullptr_t</code> <code><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2" title="Blocking (synchronous) version of send().">sync_send()</a></code> overload. Therefore, the bytes-transmitted value passed to the handler is always 0. Note: Use <code>bind_executor(S, F)</code> to bind your handler to the <a class="el" href="namespaceflow_1_1util.html#aa59354ab408e978c8a7bda1a4706924e" title="Short-hand for boost.asio strand, an ancillary class that works with Task_engine for advanced task sc...">util::Strand</a> <code>S</code>. </td></tr>
    <tr><td class="paramname">max_wait</td><td>See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a70629642551f18e474b87c128d2d77e2" title="Blocking (synchronous) version of send().">net_flow::Peer_socket::sync_send()</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00457">457</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

<p class="reference">References <a class="el" href="asio_2peer__socket_8cpp_source.html#l00102">async_send_impl()</a>, <a class="el" href="util_2detail_2util_8hpp_source.html#l00042">flow::util::chrono_duration_from_now_to_fine_time_pt()</a>, and <a class="el" href="asio_2peer__socket_8hpp_source.html#l00482">handler_func()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_a03edb7266f89a8fdc5668e7ed3e039a1_cgraph.svg" width="834" height="248"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="ad8c178464454962e49b13731caa83791" name="ad8c178464454962e49b13731caa83791"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8c178464454962e49b13731caa83791">&#9670;&nbsp;</a></span>async_send() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Handler &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void flow::net_flow::asio::Peer_socket::async_send </td>
          <td>(</td>
          <td class="paramtype">std::nullptr_t&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Handler &amp;&amp;&#160;</td>
          <td class="paramname"><em>on_result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Equivalent to <code>async_send(nullptr, duration::max(), on_result)</code>; i.e., <code>async_send(nullptr)</code> with no timeout. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Handler</td><td>See other <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a33adc635f29071b10ea59802405d9b6c" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_send()</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">on_result</td><td>See other <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a33adc635f29071b10ea59802405d9b6c" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_send()</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00475">475</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

<p class="reference">References <a class="el" href="asio_2peer__socket_8cpp_source.html#l00102">async_send_impl()</a>, and <a class="el" href="asio_2peer__socket_8hpp_source.html#l00482">handler_func()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_ad8c178464454962e49b13731caa83791_cgraph.svg" width="834" height="215"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="ab6c48bcfc9cab0b42216443f39fa8a4b" name="ab6c48bcfc9cab0b42216443f39fa8a4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6c48bcfc9cab0b42216443f39fa8a4b">&#9670;&nbsp;</a></span>async_send_impl()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void flow::net_flow::asio::Peer_socket::async_send_impl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#acd065aca0a21971d36c346d86767794d">Source_bufs_ptr</a>&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1fbefd02156e25e5ffe8fa01c67656ce">Handler_func</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>on_result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceflow.html#a9d9cc2eeb10d398cff5591d446b763b8">Fine_time_pt</a> &amp;&#160;</td>
          <td class="paramname"><em>wait_until</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>De-templated implementation of all <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a33adc635f29071b10ea59802405d9b6c" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_send()</a></code> methods. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>Ref-counted pointer to copy of <code>source</code> arg for non-<code>nullptr_t</code> <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a33adc635f29071b10ea59802405d9b6c" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_send()</a></code> methods; or an empty sequence in the case of <code>async_send(nullptr_t)</code> methods. </td></tr>
    <tr><td class="paramname">on_result</td><td><code>handler_func(on_result)</code>, where <code>on_result</code> is the user's <code>async_*()</code> method arg. </td></tr>
    <tr><td class="paramname">wait_until</td><td>See <code>max_wait</code> arg on the originating <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a33adc635f29071b10ea59802405d9b6c" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_send()</a></code> method. This is absolute timeout time point derived from it; zero-valued if no timeout. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8cpp_source.html#l00102">102</a> of file <a class="el" href="asio_2peer__socket_8cpp_source.html">peer_socket.cpp</a>.</p>

<p class="reference">References <a class="el" href="asio_2peer__socket_8cpp_source.html#l00152">cast()</a>, <a class="el" href="asio_2peer__socket_8cpp_source.html#l00132">node_or_post_error()</a>, <a class="el" href="asio_2peer__socket_8cpp_source.html#l00028">Peer_socket()</a>, and <a class="el" href="classflow_1_1net__flow_1_1Event__set.html#a19cc3a286c8a11c986d2a59ec1e39a71a5efb94617bcb00507a087224ce7a7d02">flow::net_flow::Event_set::S_PEER_SOCKET_WRITABLE</a>.</p>

<p class="reference">Referenced by <a class="el" href="asio_2peer__socket_8hpp_source.html#l00446">async_send()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_ab6c48bcfc9cab0b42216443f39fa8a4b_cgraph.svg" width="579" height="187"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_ab6c48bcfc9cab0b42216443f39fa8a4b_icgraph.svg" width="360" height="59"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a1c63aaece6a9b056688a35405f064c70" name="a1c63aaece6a9b056688a35405f064c70"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c63aaece6a9b056688a35405f064c70">&#9670;&nbsp;</a></span>async_task_engine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4">util::Task_engine</a> * flow::net_flow::asio::Peer_socket::async_task_engine </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pointer (possibly null) for the <a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4" title="Short-hand for boost.asio event service, the central class of boost.asio.">flow::util::Task_engine</a> used by any coming <code>async_*()</code> I/O calls. </p>
<h3>Thread safety (operating on a given <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Node.html" title="A subclass of net_flow::Node that adds the ability to easily and directly use net_flow sockets in gen...">Node</a>)</h3>
<ul>
<li><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a03a8a4b4ab5338d80b5d78a03279510a" title="Overwrites the value to be returned by next async_task_engine().">set_async_task_engine()</a> is the only way to change the returned value, upon construction.</li>
<li>It is not safe to call <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a03a8a4b4ab5338d80b5d78a03279510a" title="Overwrites the value to be returned by next async_task_engine().">set_async_task_engine()</a> at the same time as <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>.</li>
<li>Define "any async op" as <code>async_*()</code> in this class, including actions it takes in the background (asynchronously).<ul>
<li><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a> must return the same value &ndash; and <em>not</em> null &ndash; throughout "any async op."</li>
</ul>
</li>
<li>Put simply, a null <code>Task_engine</code> is allowed, but a null cannot be used when performing an async op. Furthermore, <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a03a8a4b4ab5338d80b5d78a03279510a" title="Overwrites the value to be returned by next async_task_engine().">set_async_task_engine()</a> is unsafe through any of those and through <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a> itself.</li>
</ul>
<p >Informal tip: Same as in doc header for <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Node.html#a778ffa52a73f455142da9497ca10734d" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async I/O calls and inheri...">Node::async_task_engine()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>Null or non-null pointer to <a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4" title="Short-hand for boost.asio event service, the central class of boost.asio.">flow::util::Task_engine</a>. </dd></dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8cpp_source.html#l00042">42</a> of file <a class="el" href="asio_2peer__socket_8cpp_source.html">peer_socket.cpp</a>.</p>

<p class="reference">References <a class="el" href="asio_2peer__socket_8hpp_source.html#l00403">m_target_task_engine</a>.</p>

<p class="reference">Referenced by <a class="el" href="asio_2peer__socket_8hpp_source.html#l00482">handler_func()</a>, and <a class="el" href="asio_2peer__socket_8cpp_source.html#l00132">node_or_post_error()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_a1c63aaece6a9b056688a35405f064c70_icgraph.svg" width="778" height="192"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a4fb07f6c5f4def217f22285fab03add1" name="a4fb07f6c5f4def217f22285fab03add1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4fb07f6c5f4def217f22285fab03add1">&#9670;&nbsp;</a></span>async_task_engine_cref()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4">util::Task_engine</a> &amp; flow::net_flow::asio::Peer_socket::async_task_engine_cref </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read-only version of <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>. </p>
<dl class="section return"><dt>Returns</dt><dd>Reference to read-only <code>*(<a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>)</code>. </dd></dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8cpp_source.html#l00048">48</a> of file <a class="el" href="asio_2peer__socket_8cpp_source.html">peer_socket.cpp</a>.</p>

<p class="reference">References <a class="el" href="asio_2peer__socket_8hpp_source.html#l00403">m_target_task_engine</a>.</p>

</div>
</div>
<a id="a0744682e2dc9118b4da3f00bc5267bec" name="a0744682e2dc9118b4da3f00bc5267bec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0744682e2dc9118b4da3f00bc5267bec">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a3ee868ebd8acd1788a5bed8cf66a349e">Peer_socket::Ptr</a> flow::net_flow::asio::Peer_socket::cast </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#aa4f1af88393042e60159a3a67f0accbc">net_flow::Peer_socket::Ptr</a>&#160;</td>
          <td class="paramname"><em>sock</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convenience method that polymorphically casts from <code><a class="el" href="classflow_1_1util_1_1Shared__ptr__alias__holder.html#aa4f1af88393042e60159a3a67f0accbc" title="Short-hand for ref-counted pointer to mutable values of type Target_type::element_type (a-la T*).">net_flow::Peer_socket::Ptr</a></code> to subclass pointer <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a3ee868ebd8acd1788a5bed8cf66a349e" title="Short-hand for shared_ptr to Peer_socket.">net_flow::asio::Peer_socket::Ptr</a></code>. </p>
<p >Behavior undefined if <code>sock</code> is not actually of the latter type. With this, one needn't do verbose <code>static_[pointer_]cast&lt;&gt;</code> or similar conversions.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>Handle to a <code>sock</code> such that the true underlying concrete type is <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html" title="A net_flow::Peer_socket that adds integration with boost.asio.">net_flow::asio::Peer_socket</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>See above. </dd></dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8cpp_source.html#l00152">152</a> of file <a class="el" href="asio_2peer__socket_8cpp_source.html">peer_socket.cpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="asio_2server__socket_8cpp_source.html#l00060">flow::net_flow::asio::Server_socket::async_accept_impl()</a>, <a class="el" href="asio_2peer__socket_8cpp_source.html#l00171">flow::net_flow::asio::Node::async_connect_impl()</a>, <a class="el" href="asio_2peer__socket_8cpp_source.html#l00061">async_receive_impl()</a>, and <a class="el" href="asio_2peer__socket_8cpp_source.html#l00102">async_send_impl()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_a0744682e2dc9118b4da3f00bc5267bec_icgraph.svg" width="578" height="331"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="aa727c33c3eeeb217d50fcd451096ded8" name="aa727c33c3eeeb217d50fcd451096ded8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa727c33c3eeeb217d50fcd451096ded8">&#9670;&nbsp;</a></span>handler_func()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Handler &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1fbefd02156e25e5ffe8fa01c67656ce">Peer_socket::Handler_func</a> flow::net_flow::asio::Peer_socket::handler_func </td>
          <td>(</td>
          <td class="paramtype">Handler &amp;&amp;&#160;</td>
          <td class="paramname"><em>on_result</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a functor that essentially performs <code>post()</code> <code>on_result</code> onto <code>*async_task_engine()</code> in a way suitable for a boost.asio-compatible async-op. </p>
<h3>Rationale</h3>
<p >Why not simply create use <code>Handler_func(on_result)</code>? After all they have the same signature, so if the idea is to de-template our internal implementation of the various <code>async_*()</code> APIs, then that would be sufficient. Answer:</p>
<p >We are aiming to implement a boost.asio-compatible async-op, so one way or another we'll need to <code>post()</code> a no-arg wrapper of <code>on_result(...);</code>. <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#aa727c33c3eeeb217d50fcd451096ded8" title="Returns a functor that essentially performs post() on_result onto *async_task_engine() in a way suita...">handler_func()</a> returning a function that does that alone would be potentially useful in its own right. That, however, is still insufficient &ndash; though that may not be obvious even to experienced boost.asio <em>users</em>. <code>Handler</code> and <code>on_result</code> may be associated with an executor, such as a <a class="el" href="namespaceflow_1_1util.html#aa59354ab408e978c8a7bda1a4706924e" title="Short-hand for boost.asio strand, an ancillary class that works with Task_engine for advanced task sc...">util::Strand</a>, which a proper boost.asio async-op API must respect when <code>post()</code>ing it onto the <a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4" title="Short-hand for boost.asio event service, the central class of boost.asio.">util::Task_engine</a>. <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#aa727c33c3eeeb217d50fcd451096ded8" title="Returns a functor that essentially performs post() on_result onto *async_task_engine() in a way suita...">handler_func()</a> takes care of that too (details omitted here; see body).</p>
<p >Note: Failing to do the executor stuff will build, and work &ndash; but it won't work "all the way," if <code>on_result</code> is bound to an executor like a strand. In the latter case it would result in executing <code>on_result()</code> outside the associated strand &ndash; and hence potential thread-unsafety.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Handler</td><td>See <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_receive()</a> and others. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">on_result</td><td>See <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a98186f8257f1f7b49dbbbc13c0dda7fe" title="boost.asio-style asynchronous version that essentially performs non-nullptr_t net_flow::Peer_socket::...">async_receive()</a> and others. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classflow_1_1Function.html">Function</a> to call from any context that will properly <code>post()</code> <code>on_result();</code> onto <code>*async_task_engine()</code>. </dd></dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00482">482</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

<p class="reference">References <a class="el" href="asio_2peer__socket_8cpp_source.html#l00042">async_task_engine()</a>.</p>

<p class="reference">Referenced by <a class="el" href="asio_2peer__socket_8hpp_source.html#l00411">async_receive()</a>, and <a class="el" href="asio_2peer__socket_8hpp_source.html#l00446">async_send()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_aa727c33c3eeeb217d50fcd451096ded8_cgraph.svg" width="368" height="59"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_aa727c33c3eeeb217d50fcd451096ded8_icgraph.svg" width="400" height="120"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="aa9e96966c7a8f5d35a34c0f5b3f65eb6" name="aa9e96966c7a8f5d35a34c0f5b3f65eb6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9e96966c7a8f5d35a34c0f5b3f65eb6">&#9670;&nbsp;</a></span>node_or_post_error()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Node.html">Node</a> * flow::net_flow::asio::Peer_socket::node_or_post_error </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1fbefd02156e25e5ffe8fa01c67656ce">Handler_func</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>on_result</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Helper that returns the <code><a class="el" href="classflow_1_1net__flow_1_1asio_1_1Node.html" title="A subclass of net_flow::Node that adds the ability to easily and directly use net_flow sockets in gen...">net_flow::asio::Node</a></code> that generated <code>*this</code>; unless <code>*this</code> is closed; in which case it returns null after posting an error-case invocation of the user handler <code>on_result</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">on_result</td><td><code>handler_func(on_result)</code>, where <code>on_result</code> is the user's <code>async_*()</code> method arg. This will be executed if and only if null is returned. The reason for why the latter occurred is passed as the error code argument to <code>on_result()</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Non-null pointer to owning <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Node.html" title="A subclass of net_flow::Node that adds the ability to easily and directly use net_flow sockets in gen...">Node</a>, if and only if it is available. </dd></dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8cpp_source.html#l00132">132</a> of file <a class="el" href="asio_2peer__socket_8cpp_source.html">peer_socket.cpp</a>.</p>

<p class="reference">References <a class="el" href="asio_2peer__socket_8cpp_source.html#l00042">async_task_engine()</a>, <a class="el" href="peer__socket_8cpp_source.html#l00101">flow::net_flow::Peer_socket::disconnect_cause()</a>, <a class="el" href="log_8hpp_source.html#l00152">FLOW_LOG_WARNING</a>, and <a class="el" href="peer__socket_8cpp_source.html#l00095">flow::net_flow::Peer_socket::node()</a>.</p>

<p class="reference">Referenced by <a class="el" href="asio_2peer__socket_8cpp_source.html#l00061">async_receive_impl()</a>, and <a class="el" href="asio_2peer__socket_8cpp_source.html#l00102">async_send_impl()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_aa9e96966c7a8f5d35a34c0f5b3f65eb6_cgraph.svg" width="375" height="180"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_aa9e96966c7a8f5d35a34c0f5b3f65eb6_icgraph.svg" width="555" height="131"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a03a8a4b4ab5338d80b5d78a03279510a" name="a03a8a4b4ab5338d80b5d78a03279510a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03a8a4b4ab5338d80b5d78a03279510a">&#9670;&nbsp;</a></span>set_async_task_engine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void flow::net_flow::asio::Peer_socket::set_async_task_engine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4">util::Task_engine</a> *&#160;</td>
          <td class="paramname"><em>target_async_task_engine</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Overwrites the value to be returned by next <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>. </p>
<p >See <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a> doc header before using this.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">target_async_task_engine</td><td>See <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8cpp_source.html#l00053">53</a> of file <a class="el" href="asio_2peer__socket_8cpp_source.html">peer_socket.cpp</a>.</p>

<p class="reference">References <a class="el" href="log_8hpp_source.html#l00197">FLOW_LOG_INFO</a>, and <a class="el" href="asio_2peer__socket_8hpp_source.html#l00403">m_target_task_engine</a>.</p>

<p class="reference">Referenced by <a class="el" href="asio_2peer__socket_8cpp_source.html#l00160">flow::net_flow::asio::Node::sock_create()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1net__flow_1_1asio_1_1Peer__socket_a03a8a4b4ab5338d80b5d78a03279510a_icgraph.svg" width="348" height="59"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="aa929c4c93d814d46bf195c874af63fee" name="aa929c4c93d814d46bf195c874af63fee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa929c4c93d814d46bf195c874af63fee">&#9670;&nbsp;</a></span>net_flow::Node</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="classflow_1_1net__flow_1_1Node.html">net_flow::Node</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>As of this writing, it is needed for <a class="el" href="classflow_1_1net__flow_1_1Node.html#aa42efbce8c5ea908a253fca2e9b2a02c" title="Returns a raw pointer to newly created Peer_socket or sub-instance like asio::Peer_socket,...">Node::sock_create_forward_plus_ctor_args()</a>. </p>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00293">293</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

</div>
</div>
<a id="a6db9d28bd448a131448276ee03de1e6d" name="a6db9d28bd448a131448276ee03de1e6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6db9d28bd448a131448276ee03de1e6d">&#9670;&nbsp;</a></span>Node</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Node.html">Node</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Similarly to the equivalent <code>friend</code> in <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html" title="A peer (non-server) socket operating over the Flow network protocol, with optional stream-of-bytes an...">net_flow::Peer_socket</a>. </p>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00291">291</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

</div>
</div>
<a id="a8497776b61df32a79707c264f8f2422b" name="a8497776b61df32a79707c264f8f2422b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8497776b61df32a79707c264f8f2422b">&#9670;&nbsp;</a></span>operator&lt;&lt; <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream &amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html">Peer_socket</a> *&#160;</td>
          <td class="paramname"><em>sock</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Prints string representation of given socket to given standard <code>ostream</code> and returns the latter. </p>
<p >The representation includes the local and remote endpoints and the hex pointer value.</p>
<dl class="section note"><dt>Note</dt><dd><code>shared_ptr</code> forwards <code>ostream</code> output to the underlying pointer type, so this will affect <code>Ptr</code> output as well. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">os</td><td>Stream to print to. </td></tr>
    <tr><td class="paramname">sock</td><td>Object to serialize. May be null. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>os</code>. </dd></dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8cpp_source.html#l00249">249</a> of file <a class="el" href="asio_2peer__socket_8cpp_source.html">peer_socket.cpp</a>.</p>

</div>
</div>
<a id="a8497776b61df32a79707c264f8f2422b" name="a8497776b61df32a79707c264f8f2422b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8497776b61df32a79707c264f8f2422b">&#9670;&nbsp;</a></span>operator&lt;&lt;() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream &amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html">Peer_socket</a> *&#160;</td>
          <td class="paramname"><em>sock</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Prints string representation of given socket to given standard <code>ostream</code> and returns the latter. </p>
<p >The representation includes the local and remote endpoints and the hex pointer value.</p>
<dl class="section note"><dt>Note</dt><dd><code>shared_ptr</code> forwards <code>ostream</code> output to the underlying pointer type, so this will affect <code>Ptr</code> output as well. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">os</td><td>Stream to print to. </td></tr>
    <tr><td class="paramname">sock</td><td>Object to serialize. May be null. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>os</code>. </dd></dl>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8cpp_source.html#l00249">249</a> of file <a class="el" href="asio_2peer__socket_8cpp_source.html">peer_socket.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a714f570918cfa8d225d75c787e7ac573" name="a714f570918cfa8d225d75c787e7ac573"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a714f570918cfa8d225d75c787e7ac573">&#9670;&nbsp;</a></span>m_target_task_engine</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceflow_1_1util.html#ac3e89a8a271b0ddc76ac2a0ce488dea4">util::Task_engine</a>* flow::net_flow::asio::Peer_socket::m_target_task_engine</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>See <a class="el" href="classflow_1_1net__flow_1_1asio_1_1Peer__socket.html#a1c63aaece6a9b056688a35405f064c70" title="Pointer (possibly null) for the flow::util::Task_engine used by any coming async_*() I/O calls.">async_task_engine()</a>. </p>

<p class="definition">Definition at line <a class="el" href="asio_2peer__socket_8hpp_source.html#l00403">403</a> of file <a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="asio_2peer__socket_8cpp_source.html#l00042">async_task_engine()</a>, <a class="el" href="asio_2peer__socket_8cpp_source.html#l00048">async_task_engine_cref()</a>, and <a class="el" href="asio_2peer__socket_8cpp_source.html#l00053">set_async_task_engine()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>net_flow/asio/<a class="el" href="asio_2peer__socket_8hpp_source.html">peer_socket.hpp</a></li>
<li>net_flow/asio/<a class="el" href="asio_2peer__socket_8cpp_source.html">peer_socket.cpp</a></li>
<li>net_flow/<a class="el" href="net__flow__fwd_8hpp_source.html">net_flow_fwd.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 28 2025 22:55:36 for Flow by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
